🚀 Join 1,200+ candidates currently preparing with PrimerPrep
Java Programming
Accenture Technical PrimermediumJava Programming1. Introduction To Java

Accenture Java Programming Practice Question

What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.print("two "); case 3: System.out.print("three "); } } System.out.println("done");

Answer options

A
done
B
one two three done
C
one two doneone two done
D
one two three two three done Switch takes the values 0, 1 and 2. Case 0 has nothing to execut

Correct answer: done

Explanation

Quick AnswerThe correct answer is done because it directly addresses the core logic of Java Programming.

Correct answer: done.

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!