Private methods are not inherited by subclasses, so the method in Sub is not overriding the private method in Super. Please refer to section 8.4.6 of the
Java Language Specification. Section 8.4.3.3 mentions of the JLS mentions that private methods are implicitly final.
One way to see this directly is to give the Super class a main method that does this:
Super s = new Sub();
s.method();
and see what prints out when you run that class.
John
[This message has been edited by John Wetherbie (edited January 15, 2001).]