CodesJava

Easy learning with example program codes

can we throw an exception without throws?


Yes, we can throw an exception manually using throw keyword without throws.
Syntax: throw InstanceOfThrowableType;

Java interview questions on exception handling

Please follow and like us:


Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki