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

protected access is with in the same package and subclasses
outside the package
default access is with in the same package only

Is This Answer Correct ?    38 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

describe synchronization in respect to multithreading? : Java thread

883


Can a class have multiple superclasses?

1091


What does the “static” keyword mean? Can you override private or static method in java?

1047


How to avoid memory leak in java?

1086


What does math floor () do?

923


Can we have multiple public classes in a java source file?

1114


What are the different tags provided in jstl?

919


Can memory leak happen java?

972


What is a condition in programming?

966


Does java arraylist maintain insertion order?

947


Why is java logo a cup of coffee?

1087


Can we override protected method in java?

1002


Explain how can you debug the Java code?

1011


What is boolean false?

934


What is general methodology?

989