1) int[] a={1}; //correct
2)
int []b;
b[]={1}; //wrong
Why initialization after declaration is showing compile-time error in java??
I didn't get satisfactory answer in previous related topic,so asking again.
1) int[] a={1}; //correct
2)
int []b;
b[]={1}; //wrong
Why initialization after declaration is showing compile-time error in java??
I didn't get satisfactory answer in previous related topic,so asking again.