Vidyalelo
Java Programming · Q3

Exceptions

Programming · Java Programming · question 3

Q3

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

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

Answer: Option C

Solution

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