aspose file tools
The moose likes Beginning Java and the fly likes Private modifier and classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Private modifier and classes" Watch "Private modifier and classes" New topic
Author

Private modifier and classes

Willie Toma
Ranch Hand

Joined: May 11, 2001
Posts: 78
I thought that the base class was the only class that wasn't able to be considered private?

Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Willie,
The correct answer is that TopLevel classes can only be public or default (no access specified).
Translation:
Any non-inner class must not be private or protected.
Regards,
Manfred.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Private modifier and classes
 
Similar Threads
few questions
question from Marcus Green's website tutorial
Inheritance/Polymorphism question
anonumous class
anonumous class