Top 100+Advanced Core Java Interview Questions 2019-2020 - 3

Question: 11

How can the Checkbox class be used to create a radio button?

By associating Checkbox objects with a CheckboxGroup.

Question: 12

Which method does display the messages whenever there is an item selection or deselection of the CheckboxMenuItem menu?

itemStateChanged method

Question: 13

For which statements does it make sense to use a label?

The only statement for which it makes sense to use a label are those statement that can enclose a break or continue statement.

Question: 14

Which method of the container class can be used to add components to a Panel?

add () method

Related Questions