aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes friendly modifier 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 "friendly modifier" Watch "friendly modifier" New topic
Author

friendly modifier

weiliu lili
Ranch Hand

Joined: Apr 11, 2002
Posts: 46
what is the scope of access modifier "friendly" in comparision with protected and default?
"friendly" can be used only as method access modifier, right?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
Java has no "friendly" keyword/modifier. Default access is package access and is sometimes called friendly access. However, this is not to be confused with the keyword "friendly" in C/C++ as it is a totally different concept.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
"friendly" is not a keyword in Java, as it is in C++.
[ June 07, 2002: Message edited by: Rob Ross ]

Rob
SCJP 1.4
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Originally posted by Rob Ross:
"friendly" is not a keyword in Java, as it is in C++.
[ June 07, 2002: Message edited by: Rob Ross ]

And, actually, I believe the keyword in C++ is "friend," not "friendly."
Corey


SCJP Tipline, etc.
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Well, I'm no C++ expert
I just no there ain't no such werd as "friendly" in the list of Java
keywords!
[ June 08, 2002: Message edited by: Rob Ross ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: friendly modifier