Vidyalelo
Java Programming · Q5

Exceptions

Programming · Java Programming · question 5

Q5

What is the purpose of the "catch" block in exception handling?

A.
It specifies the exception message
B.
It specifies the exception type
C.
It catches exceptions and handles them
Answer
D.
It contains the code that might throw an exception

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board