Q. In Java, can a method throw any checked exception without declaring it using "throws"?

  • (A) Only if the exception is marked as "static"
  • (B) Only if the method is marked as "final"
  • (C) No, a method must declare checked exceptions using the "throws" keyword
  • (D) Yes, a method can throw any checked exception without declaration
πŸ’¬ Discuss
βœ… Correct Answer: (D) Yes, a method can throw any checked exception without declaration

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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