📚 Practice Mode

C# and Java Programming Fundamentals

Learn at your own pace with hints and detailed explanations

1 / 20
Multiple Choice

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