Thursday, November 24, 2016

II BTECH II SEM JAVA PROGRAMMING LAB SYLLABUS ( R13 )

II BTECH II SEM JAVA PROGRAMMING LAB SYLLABUS ( R13 )

JAVA PROGRAMMING LAB
1. Write a JAVA program to display default value of all primitive data types of JAVA
2. Write a JAVA program that displays the roots of a quadratic equation ax2+bx+c=0. Calculate the
discriminent D and basing on the value of D, describe the nature of roots.
3. Write a JAVA program to display the Fibonacci sequence
4. Write a JAVA program give example for command line arguments.
5. Write a JAVA program to sort given list of numbers.
6. Write a JAVA program to search for an element in a given list of elements (linear search).
7. Write a JAVA program to search for an element in a given list of elements using binary search
mechanism.
8. Write a JAVA program to determine the addition of two matrices.
9. Write a JAVA program to determine multiplication of two matrices.
10. Write a JAVA program to sort an array of strings
11. Write a JAVA program to check whether given string is palindrome or not.
12. Write a JAVA program for the following
- 1. Example for call by value. 2. Example for call by reference.
13. Write a JAVA program to give the example for ‘this’ operator. And also use the‘this’ keyword as
return statement.
14. Write a JAVA program to demonstrate static variables, methods, and blocks.
15. Write a JAVA program to give the example for ‘super’ keyword.
16. Write a JAVA program that illustrates simple inheritance.
17. Write a JAVA program that illustrates multi-level inheritance
18. Write a JAVA program demonstrating the difference between method overloading and method
overriding.
19. Write a JAVA program demonstrating the difference between method overloading and constructor
overloading.
20. Write a JAVA program that describes exception handling mechanism.
21. Write a JAVA program for example of try and catch block. In this check whether the given array size
is negative or not.
22. Write a JAVA program to illustrate sub class exception precedence over base class.
23. Write a JAVA program for creation of user defined exception.
24. Write a JAVA program to illustrate creation of threads using runnable class.(start method start each
of the newly created thread. Inside the run method there is sleep() for suspend the thread for 500
milliseconds).
25. Write a JAVA program to create a class MyThread in this class a constructor, call the base class
constructor, using super and starts the thread. The run method of the class starts after this. It can be
observed that both main thread and created child thread are executed concurrently
26. Write a JAVA program illustrating multiple inheritance using interfaces.
27. Write a JAVA program to create a package named pl, and implement this package in ex1 class.
28. Write a JAVA program to create a package named mypack and import it in circle class.
29. Write a JAVA program to give a simple example for abstract class.
30. Write a JAVA program that describes the life cycle of an applet.
31. Write a JAVA program to create a dialogbox and menu.
32. Write a JAVA program to create a grid layout control.
33. Write a JAVA program to create a border layout control.
34. Write a JAVA program to create a padding layout control.
35. Write a JAVA program to create a simple calculator.
36. Write a JAVA program that displays the x and y position of the cursor movement using Mouse.
37. Write a JAVA program that displays number of characters, lines and words in a text file.

Labels:

1 Comments:

At February 23, 2020 at 9:52 AM , Blogger Manikantha Rayudu said...

can u please send all the programs as pdf file for me.it's really helps to me

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home