πŸ“Š JAVA
Q. What is the output of Java program with SWITCH below?
Code:
int a=10;
switch(a)
{
case 10: System.out.println("TEN");
}
  • (A) No output
  • (B) TEN
  • (C) Compiler error as there is no BREAK.
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) TEN

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
196
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate