File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes default scope 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 "default scope " Watch "default scope " New topic

default scope

sam mitwa

Joined: Mar 27, 2005
Posts: 13
what is difference between default scope and protected scope
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
Protected access scope gives access to the same package and subtypes.
Default access scope only provides access to the same package.

Tony Morris
Java Q&A (FAQ, Trivia)
Nikhilesh Fonseca
Ranch Hand

Joined: Aug 23, 2004
Posts: 57
protected scope is larger than default scope
so always remeber that ..its a standard mock question
I agree. Here's the link:
subject: default scope
It's not a secret anymore!