📚 Practice Mode

Java Programming and IT Security Basics

Learn at your own pace with hints and detailed explanations

1 / 17
Multiple Choice

What is the output of the following program? class example { public static void main(String args[]) { int j; do { j++; } while(j < 0); System.out.println(j); } }

  1. The program does not compile as j is not initialized
  2. The program compiles but does not run
  3. The program compiles and runs but does not print anything
  4. prints some value