Hi Srini,
The class variables will be initialized to their default values. So in your example String x will be initialized to null.
Try this code
public class example{
public static void main(String args[]){
String[] x;
int[] a[] = { {1,2} ,{3} } ;
Object c = new long[4];
Object[] d =x ;
}
}
Then it will give a compilation error as the member variables have to be initialized explicitly..
Hope this clarifies your doubt.