Q. What is the result of compiling and running the following code?
Code:
public class Test{
public static void main(String[] args){
int[] a = new int[0];
System.out.print(a.length);
}
}
β
Correct Answer: (A)
0
Explanation: Step 1: