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

What data type is a string?

1059


How do you use equal in java?

1166


What is the static field modifier?

1172


Are strings immutable in java?

1028


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1115


Difference between process and thread?

1083


Why do we use predicate in java?

1093


Describe different states of a thread.

1044


When should I use a singleton?

1099


What is equals method in java?

1103


Is java hard to learn?

965


What is the buffer limit?

1082


Why is stringbuffer thread safe?

1089


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2161


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

1067