17. What is wrong with the following code, if anything, explain why there is an error, or not an error, and why there would or would not be an error.
public class Main {
public static int[] createArray() {
int[] array = {1, 2, 3, 4, 5};
return array;
}
public static void main(String[] args) {
int[] result = createArray();
System.out.println("Value: " + result[0]);
}
}