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 / naveen

default is accessble with in package only, protectd is also
same but if any class out side the package extends the
protected class then it is also accesesible means all sub
classes(what ever the package) of protechted class can
access the protected class what ever the package

i know this answer if any one has another one or if it is
not correct answer than post a correct answer

Is This Answer Correct ?    64 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a singleton factory?

918


What is run time allocation?

979


What is procedure writing?

916


When will you define a method as static in Java?

1004


What does n mean?

949


What do you mean by singleton class in java?

865


Which are different kinds of source code?

1059


How a variable is stored in memory?

931


Who found java?

944


Explain when classnotfoundexception will be raised ?

990


What is the advantage of functional interface in java 8?

953


How does hashset works in java?

1017


Explain exception chaining in java?

1102


What is console based application in java?

995


When is the finalize() called? What is the purpose of finalization?

1022