Menu
Question Index
...

Which of the following ways can be used to handle exceptions?

X: By wrapping the desired code in a try block followed by a catch block to catch the exceptions.
Y: List the desired exceptions in the throws clause of the method and let the caller of the method handle those exceptions.


X only
Y only
Both X and Y
None of them

Doubts

Problems

Topic: Exception Handling Syntax In Java Programming

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App