ExamVeda
Login
Home
This question belongs to Java Program Flow Control
Flow Control
?

What is the output of the following code snippet?

int p = 3;
switch (p) {
case 1: System.out.print("One");
case 2: System.out.print("Two");
default: System.out.print("Default");
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.