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

Namely 4, but functionally 5
public--------------access to all

protected-----------limited to any class in same package and
sub class of any package

friendly(default)---limited to same package only

private protected---limited to sub classes of any package only

private-------------limited to same class only

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call one constructor from the other constructor ?

1118


What is the difference between instanceof and isinstance?

1127


What is the effect of keeping a constructor private?

999


How to convert string to byte array and vice versa?

1144


What is the null?

1059


What is the difference between Error, defect,fault, failure and mistake?

1244


How to restrict a member of a class from inheriting by its sub classes?

1390


What is variable and constant explain with example?

1167


What is method in research paper?

1209


What are desktop procedures?

1098


Differentiate between array list and vector in java.

1157


Explain importance of throws keyword in java?

1037


What is the use of default method in interface in java? Explain

1047


What are advantages of exception handling in java?

1070


Are generics important java?

1037