Q. What is the purpose of the "throw" keyword in Java exception handling?

  • (A) To explicitly throw an exception
  • (B) To catch exceptions
  • (C) To specify exception types
  • (D) To declare a method as "throws"
πŸ’¬ Discuss
βœ… Correct Answer: (A) To explicitly throw an exception

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
126
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
84%
Success Rate