What is the output for the below code ? public class Test { public static void main(String[] args) { Boolean expr = true; if (expr) { System.out.println("true"); } else { System.out.println("false"); } } }
false
Compile Error - can't use Boolean object in if().
true
Compile Properly but Runtime Exception.