Java lab manual

burgerraraΛογισμικό & κατασκευή λογ/κού

18 Νοε 2013 (πριν από 3 χρόνια και 8 μήνες)

104 εμφανίσεις

Java lab manual





1.
write a program that will print a "hello java" message on the screen.

2.

write a program to read the string from the command line and display the string on the screen.

3.

write

a program to read integer or float value from the command line and calculate square root
of that value.

3.

write a program to read an integer value from keyboard and check whether it is even or odd.

5.

write a program to demonstrate the concept of classes

and access the methods and variables of
class by creating an object of that class.

6.

write a program to implement a constructor of an class.

7.

write a java code to implement the method overloading.

8.

write a java code to implement the constructor overl
oading

9.

write a java code to implement the concept of inheritance, multilevel inheritance, hierarchical
inheritance.

10.

write a program to implement the method overriding.

11. write a program to implement the concept of abstract classes.

12.

write a pro
gram to implement multiple inheritance using the interface.

13.

write a java code to demonstrate the concept of inner classes.

14.

write a java code to show the use of "super" keyword.

15.

create your own package and import that package in a program.

16.

c
reate a java program for various string handling functions.

17.

create a java program for various exception handling methods.

18.

create an applet to show the welcome message.

19.

create an applet which will take input from user and display the output afte
r performing
addition.

20.

create a simple bean.

21.

write a java program to demonstrate the client
-
server communication.

22.

create a java program to demonstrate the concept of multithreading.

23.

create a java program to fetch the data from "msaccess
" database using sql query.

24. create a java program to fetch the data from "oracle8i" database using sql query.

25. write a java code for server side programming using servlet.