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...

What are access modifiers in Java ?

Answer Posted / surendrareddy

The access specifiers in java are
1.public
2.private
3.protected these are control access specifiers in java

The another one is "Default" it will available when we will
not mention above 3 access specifiers before the class variable

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort a string in java?

971


What the difference is between execute, execute Query, execute Update?

845


Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).

2157


Can I declare class as static or private?

968


Why object class is super class for every class in java?

1037


How do I convert a string to an int in java?

1079


How to run a JAR file through command prompt?

1286


How do I get a substring?

985


Can we use different return types for methods when overridden?

1006


Is java platform independent?

982


Why is stringbuffer called mutable?

1003


What is the disadvantage of synchronization?

1021


What class allows you to read objects directly from a stream?

1325


What is the difference between choice and list?

1098


What is the technique adopted to create an immutable class?

1118