A single try block must be followed by which of these?
A. finally
B. catch
C. Both a & b
D. None of the mentioned
Answer:A
A single try block must be followed by which of these?
A. finally B. catch C. Both a & b D. None of the mentioned
Explanation: try block can be followed by any of finally or catch block, try block checks for exceptions and work is performed by finally and catch block as per the exception.