Computer Science, asked by ruthrabala25, 3 months ago

which of the following is not correct way to use a throws keyword with a method definition in java?​

Answers

Answered by Anonymous
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 bhuvna789456
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