Professional Documents
Culture Documents
LAB - 2
8. Find the factorial of a given number using Recursion.
9. Find the average and sum of array of N numbers entered by user.
10. Create a class to find out the Area and perimeter of rectangle.
11. Write a class that perform String operations(Equal,Reverse the string,change case).
12. Given an integer array, find the number of decreasing sequences in the array and the
length of its longest decreasing sequence.
13. Write a program for sorting integer array using selection sort.
14. Demonstrate the use of final keyword with data member, function and class.
LAB - 3
15. Demonstrate the use of keywords try, catch, finally, throw and throws.
16. Write a program to demonstrate Multi-threading using Thread Class.
17. Write a program to demonstrate Multi-threading using Runnable Interface.
18. Write a program to demonstrate use of synchronized block over multi-threading.
19. Write a program to demonstrate use of synchronized method over multi-threading.
20. Write a program to demonstrate static synchronization over multi-threading.
21. Write a program to create game "Tic Tac Toe".
LAB - 4
-
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
-
OUTPUT -
-
OUTPUT -
1.
AGE = 45;
2.
3.
(i)
(ii)
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -
OUTPUT -