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

there are four access specifier in java.they are

public - means the the properties of class is accessable
to all other classes.
private- means the the properties of class cannot
accessable to any other classes.
protected- means the properties of class will acessed only
to its subclasses,not subclasses of its subclasses.
no access - mean you can access it with in the class.

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happens when a thread cannot acquire a lock on an object? : Java thread

1039


Is string serializable in java?

999


Is array size fixed in java?

968


What is string :: npos?

1058


What are the advantages of encapsulation in java?

995


What is the use of generics? When was it added to the Java development Kit?

1004


Does java arraylist maintain insertion order?

973


How can we find the sum of two linked lists using stack in java?

1120


Can list have duplicates in java?

888


Explain different states of a thread in java?

1037


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

969


What are thread groups?

984


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

917


What do you understand by a Static Variable?

1194


Why do we use return statement?

1016