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

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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
100
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
91%
Success Rate