How do if statements recognize the Boolean
object as a boolean
? such as:
Boolean b = new Boolean(true);
if(b){
System.out.println("true!");
} else {
System.out.println("false!");
}
This would print true, but how is Boolean
recognized?