The default value of a
boolean in Java is false.public class Test {
boolean booleanField;
public static void main(String args[]) {
System.out.println(new Test().booleanField); // false
}
}

boolean in Java is false.public class Test {
boolean booleanField;
public static void main(String args[]) {
System.out.println(new Test().booleanField); // false
}
}