This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one 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.