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

Can a class be private?

0 Answers  


What do you understand by synchronization?

0 Answers  


can you use the two main method in same class?how?

4 Answers   DELL, Geosoft, SparkTG,


What is array sorting in java?

0 Answers  


What is pojo class in java?

0 Answers  


How to instantiate static nested classes in java?

0 Answers  


Explain purpose of sleep() method in java?

0 Answers  


what is platform independence in java?

5 Answers   CSC, HSBC,


Explain the difference between transient and volatile in java?

0 Answers  


Is java a software?

0 Answers  


What is the purpose of final keyword and when to use it?

0 Answers  


What are the basics of core java?

0 Answers  


Categories