Which of the following keyword is used by a calling function to handle exception thrown by a called function?
Which of the following keyword is used by a calling function to handle exception thrown by a called function? Correct Answer catch
In Java, the “try” keyword is used in conjunction with the “catch” and/or “finally” blocks to handle exceptions. The “try” block contains the code that may potentially throw an exception. If an exception is thrown within the “try” block, it is caught and handled by the corresponding “catch” block.