Multiple choice technology programming languages

public class Test { public static void main(String... args) { for(int i = 2; i < 4; i++) for(int j = 2; j < 4; j++) if(i < j) assert i!=j : i; } }

  1. The class compiles and runs, but does not print anything

  2. The number 2 gets printed with AssertionError

  3. The number 3 gets printed with AssertionError

  4. compile error

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The code compiles and runs without printing anything because assertions are disabled by default in Java. The nested loops iterate i=2,3 and j=2,3, checking if i