You are on page 1of 2

JAVA PRACTICAL FILE

INDEX
S.N
O
1.
2.
3.
4.
5.

6.

PROGRAM

Write a program to the to print Hello world








Write a program to compute the area of a circle.
Write a program based on type casting and conversion.
Write a program to add, subtract and divide and multiple 2numbers.
Write a program to print the grade of a student.
Write a program to initialize and print the elements of the array.
Write a program to sort an array in ascending and descending order.
Write a program to display Matrix using arrays.
Write a program to create a class called Box and calculate its volume by
calling its method.
Write a program to create a class called Test and pass its object to one
of its method to illustrate usage of reference variables.
Write a program to create a class called Use Static and declare some
static variables, a static method that will perform some operation on
that variable.
Write a program to create a class Add that will add to numbers by using
a default constructor.
Write a program to create a class called triangle with base and height
as the attributes and calculate its area using parameterized constructor.
Write a program to create a class rectangle and calculate its area using
this keyword.
Write a program to insert an array and print those elements using
command line arguments.
Write a program to create a class area and calculate area of rectangle
and circle using method overloading.
Write a program to create a class called StringDemo and declare three
strings and use functions like length, charAt and equals on them.
Write a program to create a class called box with instance variables
width, height and depth. Create another class box weight. Compute the
volume of the box using inheritance.
Implement the above program using super keyword.
Create a class figure and its 2 subclasses rectangle and triangle and
calculate its area using dynamic method dispatch.
Implement the above program using abstract classes by making figure
class abstract.
Write relevant programs to show the usage of final keyword with class,
variables and methods in java.
Write a relevant programs showing the usage of package and access
protection in java.
Write a relevant programs to show the concept of importing a package.


7.


8.

9.

10.

11.

12.

13.
14.


15.

16.

17.


MOHIT KAPOOR

06590202014

Write a program to implementing nesting of interfaces. buttons. 23.   21. Write a echoserver and echoclient program that displays whatever is typed in the server on to the client using sockets. Write relevant programs to show the concept of creating Thread through thread class and run able interface Write relevant programs to show the concept of thread synchronization and inter-thread communication.     Write programs to draw different figures using AWT.  20. 19. Programs to demonstrate different event handler.  Write relevant programs to show the usage of try. colors and fonts in AWT. Working with graphics. Write a program to create a simple servelet. Write a program to implement swings. 22. Write programs to add label.    24.   25. Write a program using layout manager to add different controls on a frame. throw. MOHIT KAPOOR 06590202014 . Program to create a menu frame.   Write a program to implement stacks using interfaces. Program in java to show the connectivity of java with the database using diggerent SQL statement. textfield. throws and finally in java Write a program to create user-defined exception class using the extends keywords.JAVA PRACTICAL FILE INDEX 18. catch.  Program that displays the life cycle of the applets and other relevant programs that shows the implementation of applets in java.  26  Program that accepts a host name and display its IP address. list etc using AWWT.