posted 18 years ago
for the code above I had expected the o/p to be 0.Arrays are initialized irrespective of their location.This being a primitive int array,I had expected the o/p to be 0,where as ,when this piece of code is run we get a runtime exception(NullPointerException).Please explain why?
Shweta Dhaneshwar.<br />SCJP 1.4 90%