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

Answers were Sorted based on User's Feedback



how many access specifiers are available in java..

Answer / 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

More Core Java Interview Questions

How do you override a method in java?

0 Answers  


What function extracts specified characters from a string?

0 Answers  


What is difference between identifier and variable?

0 Answers  


What is the definition of tree ?

0 Answers   Amazon,


What is difference between path and classpath?

0 Answers  


How many types of variables are there?

0 Answers  


What is the difference between variable & constant?

0 Answers  


How do you create a bulleted list?

0 Answers  


Explain the difference between a Thread and a Process.

0 Answers   Ciena,


Can we create a class inside a class in java?

0 Answers  


What is a class in java?

0 Answers  


Can you make an instance of an abstract class?

5 Answers   Accenture,


Categories