which of the following is not correct way to use a throws keyword with a method definition in java?
Answers
Answered by
0
Answer:
The throws keyword in Java is used to declare exceptions that can occur during the execution of a program. For any method that can throw exceptions, it is mandatory to use the throws keyword to list the exceptions that can be thrown.
Answered by
0
Answer:
Explanation:
- The throws keyword in Java is used to declare exceptions that can occur during the execution of a program.
- For any method that can throw exceptions, it is mandatory to use the throws keyword to list the exceptions that can be thrown.
Similar questions