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 are the different access specifiers that can be used
by interfaces and abstract classes? can anyone give me
detailed description on this

Answer Posted / dhiren

public accsess specifier means it can publically accessed
by the class whether it's subclass of that class or present
in same packege or diffrent classes.

private access specifier is private to that class i.e. it
cant access out side the class

procted -it's accesesed by the sub class of the ckass
whether that present in the sane package or diffrent but it
must be a subclass

noacces accessed with in the same package

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist sorted in java?

1063


What are adapter classes?

1105


Is java 9 released?

1065


What are loops in java?

1350


What is double checked locking in singleton?

1107


What is the difference between a vector & an array list?

1217


how can you take care of mutual exclusion using java threads? : Java thread

1097


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

1090


What are the new features in java 8?

1070


what are the high-level thread states? : Java thread

1071


Why collection doesn’t extend cloneable and serializable interfaces?

1149


What is the purpose of garbage collection in java? When is it used?

1090


Can singleton class be inherited in java?

1058


Explain with example the concept of constant variable in java.

1261


What is an interface in java? Explain

1283