Java Programming
Accenture PrimermediumJava Programming2. Eclipse Ide

Accenture Java Programming Practice Question

What will be the output of the program? public class Sample { public static void main(String[] args) { int i = 10; do while (i < 10) { System.out.print("The value of i is " + i); } while(i>10); while (i > 10); } }

Answer options

A
No output is produce
B
Compilation error
C
The value of i is 10
D
The value of i is 10 The value of i is 10

Correct answer: No output is produce

Explanation

Correct answer: No output is produce.

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.