“In every case A has no objects that have been instantiated, there are variables of reference types, but no object have been created nor assigned”
Jesper de Jong wrote:Thanks Campbell, I'm red-green colour-blind but I can see the difference between the red and green in your post just fine (but blue and red is easier!).
In your example your outer class has a member variable that refers to an instance of an inner class, but this is not the same thing as the link that the instance of the inner class has to its containing class. The member variable of the outer class has nothing to do with this link, so setting the member variable to a different instance of the inner class does not change the link that the instance of the inner class has to the instance of its containing class.
Alexx Petrov wrote:Hello, JavaRanch!
I also have passed OCJP exam.
But I have problem with online form for requesting printed copy of certificate.
There are two field: "State" and "Address2" that must be filled, but I live in a country which doesn't have states and I have only one address.
What to do?
Maybe to copy country name in "State" and "Address1" in "Address2"?