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

In how many ways we can do exception handling in java?

937


What are recursive functions? Give some examples?

1125


What are the different types of inheritance in java?

953


Can array grow dynamically in java?

917


Write a code to show a static variable?

1035


What is an immutable class?

1081


How will you print number in reverse (descending) order in BST.

944


Is main a function?

964


What are static variables and functions?

1063


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

981


What is command line argument

1153


Is array synchronized in java?

995


How does thread synchronization occurs inside a monitor?

1044


How an object is serialized in java?

934


What does flag mean in java?

969