Solved

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

Question 10

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents