posted 22 years ago
Yes, there is no such thing called Initializer. But Java does initialization in certain cases i.e. statics, instance(if not initialised) and reference(set to null) and Arrays and Strings too.
char initialised to '\u0000'
byte to 0
short to 0
int to 0
float to 0.0f
double to 0.0d
object refence to null
boolian to false
I think Arrays and Strings are also set to null when it is declared.
Anybody please clarify.
Thanks
[This message has been edited by V Srinivasan (edited February 13, 2001).]