Q. What is the purpose of the "catch" block in exception handling?

  • (A) It specifies the exception message
  • (B) It specifies the exception type
  • (C) It catches exceptions and handles them
  • (D) It contains the code that might throw an exception
πŸ’¬ Discuss
βœ… Correct Answer: (C) It catches exceptions and handles them

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
152
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
87%
Success Rate