Raja has Published 771 Articles

Can we write any code after throw statement in Java?

raja

raja

Updated on 30-Jul-2019 22:30:26

1K+ Views

No, we can not place any code after throw statement, it leads to compile time error Unreachable Statement.Throw keyword in JavaThe throw keyword is used to throw an exception manually.Whenever it is required to suspend the execution of the functionality based on the user-defined logical error condition, we will use this ... Read More

Advertisements