Examlex

Solved

If the Combo Box AddressBox Contains a List of Strings

question 54

Multiple Choice

If the combo box addressBox contains a list of strings, why is the returned value of getSelectedItem method in the following code cast to String?
String selectedAddress;
SelectedAddress = (String) addressBox.getSelectedItem() ;


Definitions:

If-then Statement

A logical conditional statement stating that if one thing happens, then another will as well, expressing a causal or inferential relationship.

Asserted

Stated confidently or declared as true.

Disjunctive Syllogism

A logical rule that concludes one disjunct must be false if the other is true, usually in the form: Either A or B; not A; therefore, B.

Unstated Premise

A component of an argument that is not expressed but is assumed to be true for the argument to hold.

Related Questions