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 are the restrictions imposed by a Security Manager on Applets?.

2650


What is the static field modifier?

1173


What does string intern() method do?

1135


Is ruby built on java?

990


Which java version is latest?

1089


State the merge-sort principle and its time complexity.

1035


Differences between external iteration and internal iteration?

1214


Write a program to find the whether a number is an Armstrong number or not?

1075


What are inner classes or non static nested classes in java?

1218


How does the garbage collector works in java?

1146


Explain about anonymous inner classes ?

1129


What is hashing in java?

1102


What do you mean by local variable and instance variable?

1004


Why are global variables used?

1080


Explain listiterator and methods in listiterator?

1066