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

Why you should not use singleton?

982


Is java a utf 8 string?

976


Explain differences between checked and unchecked exceptions in java?

1066


What is the difference between checked exception and unchecked exception?

1017


Why we use protected in java?

976


how does the run() method in runnable work? : Java thread

922


How variables are declared?

981


Can singleton class be serialized?

950


Convert a BST into a DLL and DLL to BST in place.

1116


Difference between notify() method and notifyall() method in java?

972


How do you check whether the list is empty or not in java?

980


Explain the importance of throws keyword in java?

999


What is the purpose of static methods and variables?

1043


Explain the difference between private, public, package and protected in java?

1044


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2735