Professional Documents
Culture Documents
19. WAP that creates three threads which print no.s from 1 to 5, 6 to 10 and 11 to 15
respectively .Set the name & priority of the threads.
20 WAP to print even & odd numbers using threads.
21. WAP that implements the concept of synchronization in threads using both
syncronized method and synchronized block.
22. WAP that demonstrates the use of sleep and join methods in thread. Use minimum
three threads.
23. WAP to demonstrate the use of equals(), trim() ,length() , substring(), compareTo()
of String class.
24. WAP to implement file handling . The program should copy the content from one file
to another.
25. WAP to implement all mouse events and mouse motion events. Change the
background color, text and foreground color at each mouse event.
26. WAP to implement keyboard events.
27. WAP that creates a button in Swings. On clicking the button, the content of the
button should be displayed on a label.
28. Write a Java program that simulates a traffic light. The program lets the user select
one of three lights: red, yellow, or green. When a button is selected, the light is
turned on, and only one light can be on at a time No light is on when the program
starts.
29. WAP using AWT to create a simple calculator. Integer.parseInt(String val)
30. Write an Jframe that contains three choices and 30 * 30 pixel canvas. The three
check boxes should be labeled “red” ,”Green” and “Blue” .The selections of the
choice should determine the color of the background.
31. Create a login form using AWT controls like labels, buttons, textboxes, checkboxes,
list, radio button. The selected checkbox item names should be displayed.
32. Create an program using Combobox and textfield as per the below figure:
33. WAP to show all Layout managers. (4 Layout managers).
34. Create a simple JDBC program that displays & updates(insert or delete) the content
of a table named employee having fields (id,name,deptt).