Thursday, June 21, 2007
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment