Skip to content
3 marksDifficulty: Medium

What is the output of the following, and why? int x = 2; switch (x) { case 1: System.out.print("A"); case 2: System.out.print("B"); case 3: System.out.print("C"); }

Original Khojo Papers practice question — not from a past board paper.

Practise this chapter

Answer

Related questions

From the same topic and chapter, at a similar level.

Related questions