1. Which package must be imported to use Swing components in Java?
2. Which method is used to make a JFrame visible on the screen?
3. In Swing, which class is the top-level container commonly used to build a standalone window?
4. Which layout manager arranges components in a single row or column?
5. What is the default layout manager of a JFrame's content pane?
6. Which Swing component is used to display a single line of editable text?
7. Which interface must be implemented to handle button click events in Swing?
8. In JavaFX, which class serves as the entry point for launching an application?
9. In JavaFX, what does the Stage class represent?
10. Which JavaFX class holds the content (nodes) to be displayed within a Stage?
11. Which method in a JavaFX Application class is overridden to build and show the UI?
12. Which Swing class is used to create a dropdown selection list?
13. In JavaFX, which layout container arranges nodes in a grid of rows and columns?
14. Which Swing method is used to add a component to a container such as a JPanel?
15. Which of the following is true regarding JavaFX compared to Swing?

0 Comments