my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 10167
    
    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: 37953
    
  22
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt in access modifier
 
Similar Threads
Why public modifiers for fields?
Inheritance: Private Member access from SubClass?
two objects of the same class can access their private data
Non-public Outer Class Versus Static Inner Class
default constructor access