[Oracle interview]Is it necessary that each try block must be followed by a catch block?
It is notnecessary that each try block must be followed by a catch block. It should befollowed by either a catch block OR a finally block. And whatever exceptionsare likely to be thrown should be declared in the throws clause of themethod.
页:
[1]