What is modifier for the default constructor implicitly generated by Java compiler?
The default constructor implicitly generated by Java compiler should have the same accessibility as the class. i.e. public class will have a public default constructor, package “friendly” class will have package “friendly” constructor, unless you explicitly define it otherwise.See Package usage example for details.