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

Is null a string?

958


What is the difference between java applets and applications?

1118


What are the differences between throw and throws?

1043


Which class is the superclass for every class in java programming?

963


What are the Main functions of Java?

1064


What is tostring () method?

969


do I need to use synchronized on setvalue(int)? : Java thread

973


How do you download stubs from Remote place?

1734


How do you declare an array in java?

1003


What does || mean in code?

1001


How to find the given number is a prime number or not by getting input from the user

1049


What is the unit of plancks constant?

1004


What are the important methods of java exception class?

1051


What exactly is java?

906


Should a main method be compulsorily declared in all java classes?

1016