MCQs
Total Questions : 50
| Page 5 of 5 pages
Answer: Option C. -> int hashCode()
None.
Answer: Option D. -> All of the mentioned
Character wrapper defines 5 constants - MAX_RADIX, MIN_RADIX, MAX_VALUE,
MIN_VALUE & TYPE.
Answer: Option D. -> All of the mentioned
Boolean wrapper defines 3 constants - TRUE, FLASE & TYPE.
Answer: Option A. -> doubleValue()
doubleValue() returns the value of invoking object as double.
Answer: Option A. -> doubleValue()
None.
Answer: Option A. -> Integer
None.
Answer: Option B. -> booleanValue()
None.
Answer: Option C. -> decode()
decode() methods returns a Byte object that contains the value specified by string.
Answer: Option D. -> Number
Number is an abstract class containing subclasses Double, Float, Byte, Short, Integer
and Long.
Answer: Option C. -> getValue()
To obtain the char value contained in a Character object, we use charValue() method.