Which component cannot be added to a container Select one a
Which component cannot be added to a container?
Select one:
a. JPanel
b. JButton
c. JFrame
d. None of the above
Solution
C. JFrame
This is the one which cannot be added to a container. If you try to add a JFrame, it will throw an IllegalArgumentExceptionError.
