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

What are classloaders?

1001


What are three advantages of using functions?

995


What is the main difference between java platform and other platforms?

1070


Can we override tostring method in java?

959


What about anonymous inner classes in java?

1012


what is an objects lock and which objects have locks? : Java thread

998


What is the final keyword denotes?

1096


What is the difference between path and classpath variables?

1031


What is string in java is it a data type?

1003


Does java allow overriding static methods ?

1100


What is deserialization?

1008


Does constructor be static?

1021


What is array list in java?

1060


In which language java is written?

959


Can we override private constructor in java?

953