• Dear Guest, Please do NOT forget to join our JAVA JOBS (ONLY) FACEBOOK GROUP to be aware of latest JAVA openings, and you may also post any JAVA related queries/jobs.

What are the different ways to generate and 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.\

Click here for Java free video tutorials:)