aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes hi default acess specifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "hi default acess specifier" Watch "hi default acess specifier" New topic
Author

hi default acess specifier

Ashok Renukappa
Greenhorn

Joined: Sep 17, 2005
Posts: 1
Dear Friends
I just want to know what is the default acess specifier inside a class is it public or package or protected
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
You mean in the case of a method like m1() as follows?



It implicitly has "package" access. (But I'm going to check that )

Yes. It checks out.
[ September 17, 2005: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ritu Kapoor
Ranch Hand

Joined: Oct 03, 2004
Posts: 102
Hi,

A class defined without any access specifier has package access.

Rgds,
Ritu
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Ritu Kapoor:
Hi,

A class defined without any access specifier has package access.

Rgds,
Ritu


Certainly, but I do not think that is the question. The question seems to be about the members of a class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi default acess specifier