πŸ“Š JAVA
Q. What is the output of Java program with SWITCH?
Code:
int num=20;
switch(num)
{
case 10: System.out.println("TEN"); break;
case 20: System.out.println("TWENTY"); break;
case 30: System.out.println("THIRTY");
}
  • (A) TEN
  • (B) TWENTY
  • (C) THIRTY
  • (D) TEN TWENTY
πŸ’¬ Discuss
βœ… Correct Answer: (B) TWENTY

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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