posted 16 years ago
public class A {
A(){}
}
A The class A can be referenced outside the package in which it is defined.
B The class A cannot be instantiated outside the package in which it is defined.
C The class A cannot be extended outside the package in which it is defined.
Why B & C are correct? It is a public class. Because of non-public constructor. Correct me if I am wrong.