File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Class modifier for Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: Class modifier for Data" Watch "B&S: Class modifier for Data" New topic
Author

B&S: Class modifier for Data

Bodenstab Oliver
Ranch Hand

Joined: Mar 03, 2005
Posts: 47
Hallo,

can i use friendly/Package-Access as the access modifier for the class Data or must i use public?



I want, that the user can only access the buisiness layer and not the data layer of my application. The buisiness layer has a public class with public methods.

Thanks for response

Oliver


SCJP
Frans Janssen
Ranch Hand

Joined: Dec 29, 2004
Posts: 357
Hi Oliver,

Yes, you can use package access. There is no explicit must that you can't, so it is allowed.

Frans.


SCJP 1.4, SCJD
 
jQuery in Action, 2nd edition
 
subject: B&S: Class modifier for Data