We know that out of local variables if no initialization is provided, a default initialization takes place at the time of class loading or instantiation. :icon_rolleyes:But the question is where it takes place in a programming code? Either it is after the declaration then and there to protect and optimise the memory allocated for the variable or it is before any assignment operation:icon_question:
e.g. in the code fragment int i; i+=2;
here i gets the default int value 0
whereas in the loop condition of
int i,j; for(j=100;i<j;j--){i+=2;}
i remains uninitialized:icon_exclaim: