Java (IT-229) Lab Manual

List of Experiment
1. Write a program that declares 3 integers, determines and prints the largest and smallest in the group.
2. Write a program that accepts two numbers from the user and print their sum.
3. Write a program to calculate simple interest.
4. Write a program to find that given year is leap year or not.
5. Write a program for generation of pyramid.

Pyramid 1
*
* *
* * *
* * * *
Pyramid 2
* * * *
* * *
* *
*
Pyramid 3
*
* *
* * *
* * * *
Pyramid 4
*
* * *
* * * * *
* * *
*
Pyramid 5
1
1 2
1 2 3
1 2 3 4

 

6. Write a program to implement linear search and binary search.
7. Write a program for matrix addition.
8. Write a program to find factorial of a given number.
9. Write a program to find that given number is Palindrome or not.
10. Write a program to find that given number is Armstrong or not.
11. Write a program to print Fibonacci Series.
12. Write a program to convert decimal number into binary numbers.
13. Write a program to calculate addition of two number using prototyping of methods.
14. Program to demonstrate function overloading for calculation of average.
15. Program to demonstrating overloaded constructor for calculating box volume.
16. Program to show the detail of students using concept of inheritance.
17. Program to demonstrate package concept.
18. Program to demonstrate implementation of an interface which contains two methods
declaration square and cube.
19. Program to demonstrate exception handling in case of division by zero error.
20. Program to demonstrate multithreading.
21. Program to demonstrate JDBC concept using create a GUI based application for student
information.
22. Program to display “Hello World” in web browser using applet.
23. Program to add user controls to applets.
24. Write a program to create an application using concept of swing.
25. Program to demonstrate student registration functionality using servlets with session
management.