πŸ“Š JAVA
Q. What is the purpose of the "throws" keyword in Java method declaration?
  • (A) To indicate that the method will throw an unchecked exception
  • (B) To specify the exception message
  • (C) To indicate that the method may throw a checked exception
  • (D) To specify the exception type
πŸ’¬ Discuss
βœ… Correct Answer: (C) To indicate that the method may throw a checked exception

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
109
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
92%
Success Rate