Sunteți pe pagina 1din 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

JAVA PRACTICAL FILE

INDEX
18.

Write a program to implement stacks using interfaces.


Write a program to implementing nesting of interfaces.

19.

Write relevant programs to show the usage of try, catch, throw, throws
and finally in java
Write a program to create user-defined exception class using the
extends keywords.
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.

20.

21.

Program that displays the life cycle of the applets and other relevant
programs that shows the implementation of applets in java.

22.

Write programs to draw different figures using AWT.


Write programs to add label, buttons, textfield, list etc using AWWT.
Program to create a menu frame.
Write a program using layout manager to add different controls on a
frame.
Programs to demonstrate different event handler.
Working with graphics, colors and fonts in AWT.
Write a program to implement swings.

23.

24.

25.

26

Program that accepts a host name and display its IP address.


Write a echoserver and echoclient program that displays whatever is
typed in the server on to the client using sockets.
Program in java to show the connectivity of java with the database
using diggerent SQL statement.
Write a program to create a simple servelet.

MOHIT KAPOOR

06590202014

S-ar putea să vă placă și