Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Access Specifiers

SRAVZOct 13 2012 — edited Oct 13 2012
All


I have tow classes namely ClassA and ClassB, ClassA uses methods which are in ClassB. I donot want ClassB to be visible to external world outside the jar, if they are in classpath.

So how do i accomplish this? What is the Access Specifier i need to use?

ClassA and ClassB are bundled in a jar file.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2012
Added on Oct 13 2012
3 comments
191 views