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

why java uses class level type casting ?

2698


What is java lang object?

1023


Differentiate between a class and an object.

1067


What is static import in java?

1029


Explain different states of a thread in java?

1115


Explain the private protected method modifier?

1027


What happens when I use / and % with a negative numerator?

1077


How will you load a specific locale?

1028


What is the difference between ArrayList and Vector? which one is better in Java

1186


What is currentthread()?

1057


How to change value in arraylist java?

1243


What does file separator do in java?

1073


What is the difference between method overriding and overloading?

1290


What is flush () in java?

1068


How to declare an arraylist in java?

1188