1. Write a program to input from the console (keyboard) the name and grade of the student.
Use a loop to allow the user to continue to enter grades if they don't enter 999 to quit.
2. Write a Java program that will capture two integer variables from the user and compute
the sum, difference, and average, and print it out on to the terminal.
3. Write a Java program that will ask user to enter a five-digit number and print reverse of
the number.
4. Write a Java program that converts the given three-digit number into words. (For example,
if the given number is 297 then the output should be Two Hundred Ninety-Seven.)
5. Write a Java program to find the largest of three numbers.
6. Write a Java program to display even numbers from 1 to 100.
7. Write a Java program to display odd numbers from 1 to 100.
8. Write a Java program to copy all elements of one array into another array.
9. Write a Java program to print the elements of an array in reverse order
10. Write a Java program to sort the elements of an array in ascending order
11. Write a Java program to count the total number of characters in a string
12. Write a Java program to use the try and catch and finally block.
13. Write a program to illustrate the throws keywords in Java.
14. Write a program to create a user defined package in Java.
15. Write a Java Program to demonstrate the abstract class and abstract method.
16. Write a Java program to show the employee details using setter and getter methods.
17. Write a java program for multilevel inheritance.
18. Write a program to demonstrate the method overloading concept in Java.
19. Create an abstract class Shape. Derive three classes triangle, rectangle, and circle from it.
Calculate area of all.
20. Define an Employee class with attributes name and salary having getSalary() method,
which returns salary of the employee. Write a class Manager which extends a class
Employee, override the getSalary() method, which will return salary of manager by
adding traveling allowance and house rent allowance.
21. Write a Java program to create multiple threads in Java.
22. Write a Java program that demonstrates Synchronized Threads
23. Write a Java program that demonstrates avoiding deadlocks in multithreaded
programming.
24. Develop an application to insert the records in the table in the database using JDBC.
25. Develop an application to update the records in the table in the database using JDBC.
26. Develop an application to retrieve the records in the table in the database using JDBC.
27. Develop an application to delete the records in the table in the database using JDBC.
28. Write a java program to create a frame containing three buttons (Yes, No, Close). When
the button yes or no is pressed, the message "Button Yes/No is pressed" gets displayed
in label control. On pressing CLOSE button frame window gets closed.
29. Write a Java program to create three radio buttons. When any of them is selected, an
appropriate message is displayed.
30. Write a program to display "All The Best" in 5 different colors on screen (Using
AWT/Swing)
31. Write a Java program to create a combo box which includes list of subjects. Display the
selected subject in the text field using Swing.
32. Write a java program using swing to create a frame having three text fields. Accept
number in first textfield and display previous number in second textfield and next
number in the third textfield.