1.

Is It Mandatory To Have A Catch Block After Every Try Block In The Program Code?

Answer»

It is not NECESSARY to have a catch block after every try block in the PROGRAM CODE. All exceptions that are LIKELY to be thrown should be MENTIONED in the throws clause of the method followed by either a catch block or a finally block.

It is not necessary to have a catch block after every try block in the program code. All exceptions that are likely to be thrown should be mentioned in the throws clause of the method followed by either a catch block or a finally block.



Discussion

No Comment Found