| WhyUncheckedExceptions.java |
package lectures.exceptions;
import util.annotations.WebDocuments;
@WebDocuments({"Lectures/Exceptions.pptx", "Lectures/Exceptions.pdf", "Videos/Exceptions.avi"})
public class WhyUncheckedExceptions {
static void safeArrayIndexer() throws ArrayIndexOutOfBoundsException {
String args[] = {"hello", "goodbye"};
System.out.println(args[1]);
}
}