the Kathy Sierra book does not mention any method called booleanValue(), but when I ran the following code, it compiled well and on running , printed true.
public class juhi{
public static void main(
String[]args){
Boolean b=new Boolean(true);
boolean b1=b.booleanValue();
System.out.println(b1);
}
}
SO in the exam, will we get a question on booleanValue(), and if we do, what shud we do ? According to the KB book, there r no such methods as charValue() and booleanValue(), so occurence of these methods in the code results in a compiler error.