posted 17 years ago
From my knowledge, any instance variables which are object references (and so, references to wrapper classes), be it static or non-static, will get the default variable "null". And if the instance variables are primitive, then they get 0 (for byte/short/int/long), 0.0 (for float/double) and '\u0000' for char, and false for boolean. The exception here is a final variable, which has to be given a value (either in the class's instance variable declarations, or within the constructor).
This is not the case with local (or automatic) variables. You will get a compiler error if you use these variables without assigning any values.
Thanks,
-Vijay