Causing a Runtime Error
<HTML> <HEAD> <TITLE>Causing a Runtime Error</TITLE> </HEAD> <BODY> <H1>Causing a Runtime Error</H1> <% int i = 1; i = i / 0; out.println("The answer is " + i); %> </BODY> </HTML>
1. | Catching an ArrayIndexOutOfBoundsException Exception | ||
2. | Creating a Custom Exception Object | ||
3. | Calling Superclass Constructors | ||
4. | Runtime Polymorphism |