1.

Which of these methods of Boolean wrapper returns boolean equivalent of an object.(a) getBool()(b) booleanValue()(c) getbooleanValue()(d) getboolValue()I had been asked this question during an online interview.My question is taken from Java.lang in portion Exploring java.lang & java.io of Java

Answer» CORRECT OPTION is (B) booleanValue()

For EXPLANATION: NONE.


Discussion

No Comment Found

Related InterviewSolutions