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.