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 do you remove duplicates in java?

972


What are different types of expressions?

1071


Can we sort array in java?

899


How to split arraylist elements in java?

1121


What are the loops in java?

962


What are the different types of sorting in java?

948


Why are data types important?

1024


Can java object be locked down for exclusive use by a given thread?

966


Is integer passed by reference in java?

988


Why char array is favored over string for the storage of passwords?

1022


What are the different types of inheritance in java?

961


explain local datetime api in java8?

980


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

1047


What is an infinite loop?

1169


Why is string buffer better than string ?

1057