(1)In one mock exam i found following.
int anar[] = new int[] {1,2,3} ; saying that this line will give compile error , but it is working nicely. As a solution to this error what was said is following.
int anar[3] = new int[] {1,2,3} ; But the solution itself is not working.
(2) In the book of
JAVA programming by E. Balaguruswami some model questions are given but so many answers are wrong.
Dharmesh Rathod.