Q. Choose a wrong statement on Java IF-ELSE syntax below.

  • (A) if(condition) //statement1 else //statement2
  • (B) else //statement2
  • (C) if(condition1) //statement1 else if(condition2) //statement2
  • (D) if(condition1) //statement1 else if(condition2) //statement2 else //statement3
πŸ’¬ Discuss
βœ… Correct Answer: (B) else //statement2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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