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

Can we overload final method in java?

931


How to perform quicksort in java?

1033


Is class forname reflection?

911


What is volatile keyword in java

1070


What are scalar data types?

986


How do you sort arrays in java?

878


If a variable is declared as private, where may the variable be accessed?

1000


What is java reflection?

920


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

997


Explain the difference between an Interface and an Abstract class?

1113


Describe different states of a thread.

940


What is a byte array?

1048


What is your platform?s default character encoding and how to know this?

2321


What happens if we override only equals?

926


What is difference between final and finally in java?

1032