posted 18 years ago
The first statement is only declaring a reference. As it is a field, it will get assigned the default value of null. No object gets created.
The second statement is declaring a reference, creating (=instanciating) an object via new, and letting the reference reference that object (using the assignment operator).
Does that help?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus