Styrow.dev
Question 211 of 247
Java Topic: General medium

Can we have the try block without catch block?

Question

Can we have the try block without catch block?

Answer

Yes, we can have the try block without catch block, but finally block should follow the try block. Note:It is not valid to use a try clause without either a catch clause or a finally clause.