Java SE 11 Developer (1Z0-819) — Question 139
Which module is required for any application using Swing or AWT?
Answer options
- A. java.desktop
- B. java.prefs
- C. java.se
- D. java.logging
- E. java.rmi
Correct answer: A
Explanation
The correct answer is A. java.desktop, as it contains the necessary classes for building graphical user interfaces with Swing and AWT. The other options, while important for different functionalities, do not provide the components required for GUI applications.