📚 Practice Mode

Java Servlets and Core Programming

Learn at your own pace with hints and detailed explanations

1 / 20
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