File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes doubt in access modifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "doubt in access modifier" Watch "doubt in access modifier" New topic
Author

doubt in access modifier

jonny miller
Greenhorn

Joined: Dec 17, 2008
Posts: 2
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
A. public
B. abstract
C. protected
D. synchronized
E. default access
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

Originally posted by jonny miller:
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
A. public
B. abstract
C. protected
D. synchronized
E. default access


Hi Jonny,

Welcome to the Ranch. We are happy to have you here
One of the things which we don't do, is this


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38496
    
  23
Originally posted by Maneesh Godbole:
One of the things which we don't do . . .


What Maneesh means is, we would like you to write what you think the correct answer is, then we'll tell you whether you have got it right.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt in access modifier