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