0 votes
in JAVA by

 What is the output of the following code?

int[] arr = new int[5];

System.out.println(arr[0]);

a) 0

b) null

c) Compiler error

d) Undefined

1 Answer

0 votes
by
Solution: a) 0

Explanation: The default value of an int array is 0.
...