Solved

If You Have Two RadioButtons (DogRadio and CatRadio), How Should

Question 14

Multiple Choice

If you have two RadioButtons (dogRadio and catRadio) , how should you code them to create a mutually exclusive relationship?


A) ToggleGroup radioGroup = new ToggleGroup() ;
DogRadio.setToggleGroup(radioGroup) ;
CatRadio.setToggleGroup(radioGroup) :
B) ToggleGroup radioGroup = new radioGroup() ;
DogRadio.setToggle(radioGroup) ;
CatRadio.setToggle(radioGroup) :
C) dogRadio.setToggleGroup() ;
CatRadio.setToggleGroup() :
D) ToggleGroup dogRadio = new ToggleGroup() ;
ToggleGroup catRadio = new ToggleGroup() ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions