Fundamentals1 / 25
Up next

Booleans and null

class Main {
    public static void main(String[] args) {
        boolean flag = true;
        String nothing = null;
        System.out.println(flag && !false);
        // reference types can be null; primitives cannot
        System.out.println(nothing == null);
    }
}
What you're solving

true, false, and the null reference