Java - Arrays
The following code is intended to print all elements of the array
data, but it causes a runtime error. What is the error?int[] data = {10, 20, 30};
for (int i = 1; i <= data.length; i++) {
System.out.println(data[i]);
}