πŸ“Š JAVA
Q. What is the output of the below Java program with a SWITCH statement?
Code:
int points=6;
switch(points)
{
  case 6: ;
  case 7: System.out.println("PASS");break;
  case 8: ;
  case 9: System.out.println("Excellent");break;
  case 10: System.out.println("Outstanding"); break;
  default: System.out.println("FAIL");
}
  • (A) PASS
  • (B) Excellent
  • (C) Outstanding
  • (D) FAIL
πŸ’¬ Discuss
βœ… Correct Answer: (A) PASS

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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