Tag: programming languages

Questions Related to programming languages

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


Correct Option: A