Java Servlets and Core Programming

Casual Mode - Take your time!

1 / 20
Correct
0
Incorrect
0
Score
0%
Multiple Choice

package loop; public class TestLoop2 { public static void main(String[] args) { int p = 100; do { while(p>100) { System.out.println("I am in while"); } System.out.println("I am in do-while"); } while (p > 100); } }

  1. I am in do-while
  2. I am in while I am in do-while
  3. Compiler Error
  4. No output
Change Mode