Andrew Fitzpatrick wrote:Hi, I just got exactly the same problem and managed to fix it.
The problem is classpath related and to do with the order of jar and class files. To solve right click on the project in Eclipse and select properties, click the Order and Export tab. Now use the buttons on the right hand side to move the java runtime up so that it appears before all library jar files, ensure your project files still precede this library though.
A refresh on the project should see it rebuilt without issue.
Ruben Soto wrote:Hi Rod,
Welcome to Javaranch!
I am not sure about the answer because of the pool issue. At least 2 objects (the 2 A objects,) and at most 4 objects (including the Integer and Double, which are shared between both A instances due to the fact that they are pool objects.) Perhaps someone has a more authoritative answer, although I have the feeling this would be implementation dependent, and you wouldn't find this question in the exam. But I would like to hear the official word on that too.
Henry Wong wrote:
Why "super" keyword is not accepted whereas "extends" keyword is expected?
Well, the short answer is ... super is just not allowed there.
Henry