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
B) 2
You might also like to view...
Construct a step-by-step guide explaining the operation of the alternative rendezvous-based routing algorithm shown in Figure 6.12.
What will be an ideal response?
What statement regarding Type 1 hypervisors is accurate?
A. They are typically used on desktops and laptops B. The VirtualBox software is an example C. They are called bare-metal hypervisors D. They install as an application
Which of the following best describes a QR code?
A. A user's unique login and password. B. A promotional code a user enters on an e-commerce website to receive a discount. C. A graphic that represents a link to online information. D. A link in an email that enables a user to opt-in or opt-out of future communications.
Speaker recognition systems employee three styles of spoken input, including:
Fill in the blank(s) with the appropriate word(s).