/* Test accessing arrays with invalid index*/ class Main { void main() { int[] x; x = new int[5]; x[-1] = 5; //this should fail } }