A
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);
}
}
public static void main(String[] args){
int[] a = new int[0];
System.out.print(a.length);
}
}
- Correct Answer - Option(A)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.