The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 The Open Road: Superpackages
Subject:  export = public and protected = public?
Date:  2008-03-11 06:51:23
From:  ebresie


While reviewing this article, I had a basic question...

Why have the "export"?

As I recall my basic java accessor keywords which are either public, protected, private, or <no accessor>.

In the context of superpackages, usage of "export" seems to be the equivalent of having a public method in basic packaging, while the superpackage "public" methods seem to be the equivalent of protected method that is suppose to be acceptable within a package but not outside. Is this kind of repetitive and adding something that is already present?

 Feed java.net RSS Feeds