Java Oral Answers
Java Oral Answers
2. **Component**
- A graphical element in a GUI, such as a button, label, or text field.
3. **Container**
- A component that can hold other components, like a panel or frame.
4. **Window Class**
- A top-level container without borders or menu bars, used for creating windows.
5. **Panel**
- A simple container for organizing components within a window or another container.
6. **Frame**
- A top-level window with borders and a title, commonly used for standalone applications.
Example: `Frame frame = new Frame("My Frame");`
7. **Method**
- A block of code that performs a specific task and can be called when needed.
8. **setSize Method**
- Used to set the width and height of a GUI component or container.
9. **Applet**
- A small Java program that runs in a web browser or applet viewer.
20. **Swing**
- An advanced GUI toolkit in Java, part of the Java Foundation Classes (JFC).
26. **JTabbedPane**
- Allows multiple tabs within a single window.
29. **Uses**
- **JProgressBar**: Shows task progress.
- **JToolTip**: Displays tooltips.
- **JSlider**: Adjusts values within a range.
- **JDialog**: Displays dialog boxes.
31. **Event**
- An action that occurs, such as a button click.
32. **Source**
- The object that generates an event.
41. **Socket**
- A communication endpoint for sending/receiving data over a network.
60. **Servlet**
- A Java class for handling web requests and responses.
62. **CGI**
- Common Gateway Interface for web-based scripts.
75. **JSP**
- Java Server Pages for dynamic web content.
- Advantages: Easy to write, integrates with Java.