This is very simple thing but still I am not able to figure out why line A produces output 0 and line B produces a random number(zero or non-zero)
public static void main(String [] args) { int [] intArr = new int[10]; for(int i=0; i
It could be simple. Feeling lost !