What is the result of compiling and running the following code? public class Test{ public static void main(String[] args){ int[] a = new int[0]; System.out.print(a.length); } }
1.0
2.1
3.compile error
4.None of the above
Posted Date:-2021-10-25 05:16:02