Can we have try block without catch block in Java?

Each try block requires atleast one catch block or finally block.

A try block without catch or finally, will result in compiler error.

We can skip either of catch or finally block but not both.


Posted

in

Tags:

Comments

Leave a Reply