java.lang.ObjectExceptionsDemo2
public class ExceptionsDemo2
Demonstration of the 'finally' block.
| Constructor Summary | |
|---|---|
ExceptionsDemo2()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Inputs an 'int' index, searches a String[] array of names and displays the matching element from the array to the terminal window. |
| Methods inherited from class |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionsDemo2()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - The String[] array command line parameter
java.util.InputMismatchException - if index is not an integer
java.lang.ArrayIndexOutOfBoundsException - if index is less than zero (0) or
greater than array.length - 1
java.lang.RuntimeException - handles any unexpected exceptions