Q. In Java, can a "catch" block catch exceptions of a subclass type before catching exceptions of a superclass type?

  • (A) Only if the superclass is marked as "static"
  • (B) Only if the subclass is marked as "final"
  • (C) Yes, a "catch" block can catch exceptions of a subclass type before a superclass type
  • (D) No, a "catch" block must catch exceptions of a superclass type first
πŸ’¬ Discuss
βœ… Correct Answer: (C) Yes, a "catch" block can catch exceptions of a subclass type before a superclass type

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
150
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
80%
Success Rate