File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Private Access Modifier for class
Joined: Nov 22, 2008
Sep 02, 2000 08:04:00
I am confused that in which situation we can use private access modifier for a class.
if no feature of that can be used , what's use of that class
Joined: Aug 21, 2000
Sep 02, 2000 13:03:00
hi there mohit!!!
you got it wrong man remember that a top level class can never be private,(they cant' even be protected,native,static or synchronized).only methods and variables inside the class can be private.
It is sorta covered in the
JavaRanch Style Guide
subject: Private Access Modifier for class
restricting methods access
why protected modifier is not allowed?
Doubt in Mocktest
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014