What is the output for the below code ? public class Test { public static void main(String... args) { for(int i = 2; i < 4; i++) for(int j = 2; j < 4; j++) assert i!=j : i; } }
The class compiles and runs, but does not print anything.
The number 2 gets printed with AssertionError
The number 3 gets printed with AssertionError
compile error