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...

how many access specifiers are available in java

Answer Posted / manikandan

There are 4 access specifiers available , they are
(1) Public
(2) Protected
(3) Default
(4) Private

and their scopes are

Access|Scope|
Speci | |CLASS | SUBCLASS | PACKAGE |GLOBAL
--------------------------------------------------------------
PUBLIC YES YES YES YES

PROTECTED YES YES YES NO

DEFAULT YES YES NO NO

PRIVATE YES NO NO NO

Is This Answer Correct ?    6 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you add an element to an arraylist in java?

946


What an i/o filter?

1021


What is the difference between && and & in java?

1085


Can we have two methods in a class with the same name?

1054


How an object is serialized in java?

991


Does hashset allow duplicates in java?

1126


How to create a thread in java?

1144


What are the two basic ways in which classes that can be run as threads may be defined?

1075


Mention some interfaces implemented by linked list in java.

1022


What is the public field modifier?

1028


How big is a 32 bit integer?

1044


can I implement my own start() method? : Java thread

994


Can a final variable be null?

1021


Can keyword be used as identifier?

966


What is a generic type?

1010