Q. In Java, can a "catch" block catch multiple exceptions?

  • (A) No, a "catch" block can only catch one exception
  • (B) Only if the "catch" block is marked as "static"
  • (C) Only if the exceptions are marked as "final"
  • (D) Yes, a "catch" block can catch multiple exceptions using the pipe ( | ) symbol
πŸ’¬ Discuss
βœ… Correct Answer: (D) Yes, a "catch" block can catch multiple exceptions using the pipe ( | ) symbol

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
124
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
94%
Success Rate