Can we write any code after throw statement in Java?

After throw statement jvm stop execution and subsequent statements are not executed.

If we try to write any statement after throw we do get compile time error saying unreachable code.


Posted

in

Tags:

Comments

Leave a Reply