To create swing components, which of the following is imported?
-
javax.awt.*
-
java.awt.*
-
javax.swing.*
-
java.swing.*
C
Correct answer
Explanation
Swing components are in the javax.swing package, which must be imported to use them. The java.awt package contains the original AWT (Abstract Window Toolkit) components, while java.swing and javax.awt are incorrect package names that don't exist in the standard Java library.