Java

Topic: Exceptions

What are the different ways to generate an Exception?

There are two different ways to generate an Exception.        Exceptions can be generated by the Java run-time system.Exceptions thrown by Java relate to fundamental errors that violate the rules of the Java language or the constraints of the Java execution environment.        Exceptions can be manually generated by your code.Manually generated exceptions are typically used to report some error condition to the caller of a method.

Browse random answers: