This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Private Access Modifier for class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Private Access Modifier for class" Watch "Private Access Modifier for class" New topic
Author

Private Access Modifier for class

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
Pls Explain
Thanx
mohit
kishen uchil
Greenhorn

Joined: Aug 21, 2000
Posts: 14
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.
 
GeeCON Prague 2014
 
subject: Private Access Modifier for class