Q. What happens in a method if there is an exception thrown in a try block but there is no catch block following the try block?

  • (A) The program ignores the exception.
  • (B) The program will not compile without a complete try/catch structure.
  • (C) The program terminates immediately.
  • (D) NoSuchFileException
πŸ’¬ Discuss
βœ… Correct Answer: (A) The program ignores the exception.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
176
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate