Originally posted by:sameer inamdar
can we say that.
The reference to inner object is independent to the reference of Outer object.
static methods cannot be overridden. So it is useless declaring a static method in an interface, because nothing can provide its implementation.
Attempting to use == to compare reference variables for objects in different class hierarchies will result in a compiler error.