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 is difference between hashset and hashmap?

1118


Can we write multiple catch blocks under single try block?

1086


How many bytes is a url?

986


explain local datetime api in java8?

1016


How to sort an array in java without using sort method?

878


What is thread pool? How can we create thread pool in java?

1069


What is final access modifier in java?

1147


how does multithreading take place on a computer with a single cpu? : Java thread

1151


Define how can we find the actual size of an object on the heap?

1209


Write a function to print Fibonacci series and Tribonacci series?

1184


What is a pattern what is an anti pattern?

978


What are scalar data types?

1070


What is boolean query?

984


What is purpose of applet programming?

1188


What is the instance of an object?

1196