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

What is class??

1241


What are the advantages of encapsulation in java?

1012


What is merge sort in java?

980


How do I enable java in safari?

1037


Tell me the Importent classes in net package?

1999


Explain jdk, jre and jvm?

976


What are the important features of Java 10 release?

985


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

1017


What is the order of arraylist in java?

1138


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

1046


What is the common usage of serialization? What exceptions occur during serialization?

1125


Is a copy constructor?

1060


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

2506


How to declare objects of a class ?

1077


What is derived datatype?

1219