Hi,
I think in the above case only option E is fine. When you
initialize during declaration, the compiler accepts only when the number of elements in the RHS is blank.
So it would be right to say
int [ ] arr = new int[] {1, 2, 3, 4, 5} but not
int [ ] arr = new int[5] {1, 2, 3, 4, 5};
Same holds good for D also. Pls correct me if I am wrong.
I tried the above with JDK1.2.2
Thanks
MKBala...