Hi,
In Thinking in
Java 4E, They described 4 ways to keep references initialized.
1. Initializing at the point of definition
2. In the constructor
3. at the point of use (lazy initialization)
4. Instance Initialization
and they given an example for it.
Can any one explain me the difference between Instance Initialization and Initialization at the point of definition except the location at which they will be done.
i mean is there any difference in the scope of those variables ??
Regards
Balakrishna T