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

What do you mean by ordered and sorted in collections in java?

993


Difference between static binding and dynamic binding?

1108


What is the difference between sop and work instruction?

927


What is toarray method in java?

1101


What are features of java?

1023


What is the main purpose of java?

1095


What is the default size of set in java?

967


How do you replace a string in java?

1004


What are methods?

1025


How to do a true java ping from windows?

1158


Is space a char?

927


What is the use of set in java?

1123


What is application tier?

1120


Can we have 2 main methods in java class?

1023


Explain about method local inner classes or local inner classes in java?

1027