Menu
Question Index
...

What will be the output of the program?

class Output
{
    public static void main(String [] args)
    {
        int I = 1;
        do while ( I < 1 )

                System.out.print("I is " + I);

        while ( I > 1 ) ;
    }
}


I is 1
I is 1 I is 1
No output is produced
Compilation error

Doubts

Problems

Topic: do while Loop In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App