Home » JAVA Programming » Exceptions » Question
  1. Which of the following keyword is used by calling function to handle exception thrown by called function?
    1. catch
    2. try
    3. throw
    4. throws
    5. None of these
Correct Option: D

A method specifies behaviour of being capable of causing exception. Throws clause in the method declaration guards caller of the method from exception.



Your comments will be displayed only after manual approval.