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 is the java project architecture?

2200


How do you sort arraylist in descending order?

991


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

976


How to sort an unsorted array in java?

1087


Why is string buffer better than string ?

1051


What is Enum in Java?

1225


What is the difference between int and integer in java?

996


How static variable work in java?

1073


Convert Binary tree to linked list.

1024


What is the main use of generics in java?

934


How would you convert bytes to string?

947


Define a package.

1020


What are the access modifiers in java?

1000


What are scriptlets?

1036


What is the point of java?

984