Set-I
1. Write a java program for arithmetic operations.
2. Write a Java program for the following: I) create a doubly linked list of elements. ii) Delete a
given element from the above list. iii) Display the contents of the list after deletion.
Set-II
3. Write a java program for finding the factorial of a given number.
4. Write a Java program to create an abstract class named Shape that contains two integers and an
empty method named print Area (). Provide three classes named Rectangle, Triangle, and Circle
such that each one of the classes extends the class Shape. Each one of the classes contains only
the method print Area () that prints the area of the given shape.
Set-III
5. Write a java program to print the reverse of a string.
6. Write a java program that handles all mouse events and shows the event name at the center of
the window when a mouse event is fired (Use Adapter classes).
Set-IV
7. Write a java program to check whether the given number is prime or not
8. Write a Java program that implements a multi-thread application that has three threads. First
thread generates random integer every 1 second and if the value is even, second thread
computes the square of the number and prints. If the value is odd, the third thread will print the
value of cube of the number.
Set-V
9. Write a java program to print prime numbers from 1 to 100.
10. Write a Java program that creates a user interface to perform integer divisions. The user enters
two numbers in the text fields, Num1 and Num2. The division of Num1 and Num 2 is displayed
in the Result field when the Divide button is clicked. If Num1 or Num2 were not an integer, the
program would throw a Number Format Exception. If Num2 were Zero, the program would
throw an Arithmetic Exception. Display the exception in a message dialog box.
Set-VI
11. Write a java program to create an array, and add 5 integer numbers, then fond the smallest and
largest number in the array.
12. Develop an applet in Java that receives an integer in one text field, and computes its factorial
Value and returns it in another text field, when the button named “Compute” is clicked.
Set-VII
13. Write a java program to find whether a given number is Armstrong number or not
14. Develop an applet in Java that displays a simple “Hello world” message.