This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Higgledy Smith wrote:This is a question from the K&B SCJP Study Guide 6.0 1st mock exam.
What is the point of this question? Are the test makers trying to test constructors or access modifiers?
Based on my opinion. That's trying to test both.
Imagine if the class both resides in the different package.
That would be compile error.
Because constructor in superclass cannot be accessed outside its package.