Multiple Choice
How many radio buttons can be selected at the same time as the result of the following code? hours = new JRadioButton("Hours") ;
Minutes = new JRadioButton("Minutes") ;
Seconds = new JRadioButton("Seconds") ;
Days = new JRadioButton("Days") ;
Months = new JRadioButton("Months") ;
Years = new JRadioButton("Years") ;
TimeOfDayButtonGroup = new ButtonGroup() ;
DateButtonGroup = new ButtonGroup() ;
TimeOfDayButtonGroup.add(hours) ;
TimeOfDayButtonGroup.add(minutes) ;
TimeOfDayButtonGroup.add(seconds) ;
DateButtonGroup.add(days) ;
DateButtonGroup.add(months) ;
DateButtonGroup.add(years) ;
A) 1
B) 2
C) 3
D) 4
Correct Answer:

Verified
Correct Answer:
Verified
Q4: The minimize button, maximize button, and close
Q7: You would use this command at the
Q8: In a Swing application, you create a
Q12: These types of components are coupled with
Q32: When adding components to a container that
Q33: To use the ActionListener interface, as well
Q35: This layout manager arranges components in five
Q39: If panel references a JPanel object, which
Q42: JFC stands for:<br>A) Java Fundamental Classes<br>B) Java
Q58: The ActionEvent argument that is passed to