Solved

Assume That the Variable Checkbox References a JCheckBox Object

Question 52

Multiple Choice

Assume that the variable checkbox references a JCheckBox object. To determine whether the check box has been selected, use the following code:


A) if (isSelected(checkBox) ) {/*code to execute, if selected*/}
B) if (checkBox.isSelected() ) {/*code to execute, if selected*/}
C) if (checkBox) {/*code to execute, if selected*/}
D) if (checkBox.doClick() ) {/*code to execute, if selected*/}

Correct Answer:

verifed

Verified

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

Related Questions