What gets printed on the console? If you think the code will crash explain why? Error, it will crash because it is out of bounds.
5- (Points: 4) public class Test {
public static void rnain(String args) {
jnt x = new int[5]; int i;
for (i = U; i s“. x.length; i++)
flfl=t
System.out.println(x[i]);
} } What gets printed on the console? If you think the code will crash explain why? Error, it will crash because it is out of bounds.