package Lect25Callstack; public class ExceptionsExOne { public void TestOne() { int x=2, y=0; System.out.println("Div: " + (x/y)); System.out.println("Prod: " + (x*y)); } public void TestTwo() { int[] data = {10, 20, 30, 40, 50}; for (int i=0; i<=data.length; i++) { System.out.println(data[i]); } } public static void main(String[] args) { ExceptionsExOne ex = new ExceptionsExOne(); ex.TestOne(); // ex.TestTwo(); } }