hi
i was going thru one of the mock exams onthe net .there was a q's which was as follows
Q3.Which of the given choices are true?Select any two.
1 class Q3
2 {
3 public static void main(
String arg[])
4 {
5 int[] a,c,d[];
6 int b[]=new int[0];
7 }
8 }
options :
1) All the variables a,b,c,d are arrays.
2) Only a,d,b are arrays.
3) We can declare an array with zero element.
4) We cannot declare an array with zero element.
i thought the answers were 2& 3 but when i checked it was as 1 & 3. please let me know whether i am correct or not and why in case i am wrong .
Thanks is advance
Lakshmi
--------------------------------------------------------------------------------