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

default can be accessable in same class & same package.
protected can be accessed in same class,same package and
subclass.

Is This Answer Correct ?    29 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which number is denoted by leading zero in java?

1310


What is the byte range?

1076


What is Garbage Collection in Java

1121


Can I uninstall java?

1109


What is used of static keyword in java?

1142


Explain about class in java?

1161


Does java runtime require a license?

1136


How can you say java is object oriented?

1136


What is a line break example?

1043


Can we extend singleton class?

1000


Why string is immutable with example?

1036


How do you start a thread?

1098


What is the use of flag?

1135


How do you remove duplicates in java?

1071


Can we have 2 main methods in java class?

1067