OOP-Questions Unit Wise
OOP-Questions Unit Wise
UNIT – 2
UNIT – 3
UNIT – 5
1.What do you understand by event handling in Java? Give an example of any event like mouse event, keyboard
event and windows event.
2.Write short note on the following components:
(i) JLabel
(ii) JTextField
(iii) JTextArea
(iv) JList
(v) JPasswordField
3.What do you understand by Layout manager? Illustrate three types of layout available in Java with the help of
suitable syntax.
4.Write short notes on the following: (i) Toggle buttons (ii) Combo box (iii) Tabbed Panes (iv) Scroll Panes
5.Draw hierarchical diagram of Java Swing Classes.
6.What is the difference between JPanel and JFrame in Java Swing?
7.Explain difference between AWT and Swing with proper example.
8.Write Java Swing program that changes background color whenever user clicks on button and displays the
message "Welcome to Java Swing".
9.Determine event? How is event handling done in Java? Explain with an example. 10. Write a Java program to
display the month names by JList and display the Days by JComboBox.