Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

*Java Program List for External Practical Exam*

1. Write a Java program to copy the content of one file into another.
2. Write a java applet to display the following output in Red color. Refer Fig. No. 1.

3. Write a java program to sort an 1-d array in ascending order using bubble-sort.
4. Write a Java program in which thread A will display the even numbers between 1 to
50 and thread B will display the odd numbers between 1 to 50. After 3 iterations
thread A should go to sleep for 500ms.
5. Write a Java program for parameterized constructor with suitable example.
6. Write a Java Program to count the number of words from a text file using stream
classes.
7. Write a Java applet to draw a bar chart for the following values.

8. Write a program to check whether the given number is prime or not.


9. Define a class employee with data members 'empid , name and salary. Accept data
for three objects and display it
10. Write a program to read a file (Use character stream)
11. Write a program to add 2 integer, 2 string and 2 float values in a vector. Remove the
element specified by the user and display the list.
12. Develop a program to create a class ‘Book’ having data members author, title and
price. Derive a class 'Booklnfo' having data member 'stock position’ and method to
initialize and display the information for three objects.
13. Write a program to create a class 'salary with data members empid', ‘name' and
‘basicsalary'. Write an interface 'Allowance’ which stores rates of calculation for da
as 90% of basic salary, hra as 10% of basic salary and pf as 8.33% of basic salary.
Include a method to calculate net salary and display it.
14. Define an exception called 'No Match Exception' that is thrown when the passward
accepted is not equal to "MSBTE'. Write the program.
15. Write a program to check whether the string provided by the user is palindrome or
not.
16. Design an applet to perform all arithmetic operations and display the result by
using labels. textboxes and buttons.
17. Write a program lo display ASCII value of a number 9.
18. Write a program to sort the elements of an array in ascending order.
19. Write a program which displays functioning of ATM machine, (Hint: Withdraw,
Deposit, Check Balance and Exit)
20. Write a program to show the use of copy constructor.
21. Write a program to show the Hierarchical inheritance.
22. Write a program to show the Single inheritance.
23. Develop and Interest Interface which contains Simple Interest and Compound
Interest methods and static final field of rate 25%. Write a class to implement those
methods.
24. Write a program that throws an exception called "NoMatchException" when a
string is not equal to "India".
25. Write a program to print the sum, difference and product of two complex numbers
by creating a class named "Complex" with separate methods for each operation
whose real and imaginary parts are entered by user.
26. Write a Program to Illustrate Priorities in Multithreading
27. Write a program to draw a chessboard in Java Applet.
28. Define a class person with data member as Aadharno, name, Panno implement
concept of constructor overloading. Accept data for 5 object and print it.
29. Design an applet which accepts username as a parameter for html page and display
number of characters from it.
30. Develop a program which consists of the package named let_me_calculate with a
class named calculator and a method named add to add two integer numbers.
Import let_me_calculate package in another program (class named Demo) to add
two numbers.

You might also like