Which component cannot be added to a container?

Which component cannot be added to a container?


A. JPanel
B. JButton
C. JFrame
D. JComponent

The correct answer is C


Java

Learn More Multiple Choice Question :