Unit 3
1. B. start()
2. D. Running
3. B. Runnable
4. B. Enum
5. The process of converting a primitive type into an object is called **Boxing**.
6. Wrapper classes are found in the **[Link]** package.
7. Every Java application has at least one thread. (True)
8. The wait() method must be called from a synchronized context. (True)
Unit 4
1. C. KeyListener
2. B. WindowListener
3. C. actionPerformed()
4. B. Runtime error
5. C. Event Source and Event Listener
6. C. ActionAdapter
7. B. Heavyweight
8. C. Frame
9. AWT layouts are part of the **[Link]** package.
10. **FlowLayout** is the default layout for a Panel in AWT.
11. The layout that allows placing components in North, South, East, West, and Center regions is
**BorderLayout**.
12. To use a layout manager in AWT, we call the method **setLayout()** on a container.
13. AWT stands for Abstract Window Toolkit and is used to create GUI. (True)
14. AWT components are lightweight and do not rely on native platform resources. (False)
15. The FlowLayout manager places components at fixed positions in a container. (False)
16. A listener in Java is an interface that is used to handle events such as button clicks or key
presses. (True)
Unit 5
1. A. stop()
2. C. <applet>
3. C. paint()
4. C. Java program that runs in a web browser
5. B. JFrame
6. A. FlowLayout
7. C. JButton
8. B. add()
9. **JFrame** is the top-level container used to create a window in Swing.
10. A JList allows the selection of one or multiple **items**.
11. The **JPasswordField** class is used to handle text input in a password field.
12. A JLabel can be used to display both **text** and **images**.
13. An applet is a Java program that can run inside a web browser. (True)
14. The init() method is called every time an applet is minimized and restored. (False)