Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between the "protected and default"
modifiers?

Answer Posted / ravikiran

protected access is with in the same package and subclasses
outside the package
default access is with in the same package only

Is This Answer Correct ?    38 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a parent class in java?

1014


What is private public protected in java?

1029


What is a variable in java?

1125


Can we have 2 main methods in java class?

1018


What is the purpose of the finalize() method?

1244


What super () does in java?

905


What is meant by data hiding in java?

1145


What about member inner classes?

1092


Why stringbuilder is not thread safe in java?

1009


How do you delete a list in java?

946


Explain different ways of creating a thread?

1049


Write a java program to generate fibonacci series ?

1068


What is indexof?

977


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

1051


If an object is garbage collected, can it become reachable again?

993