This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.