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 different type of access modifiers?

Answer Posted / janet

Public: Any thing declared as public can be accessed from
any where.
Private: Any thing declared as private can't be seen
outside of it's class.
Protected: Any thing declared as protected can be accessed
by classes in the same package and subclasses in the other
packages.
Default modifier: can be accessed only to classes in the
same package.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give me example of derived data types.

1160


why doesn't java run on all platforms?

1029


Is list ordered in java?

975


Define how objects are stored in java?

1062


What are the two ways to create a thread?

1008


How can you read content from file in java?

1006


Why we use protected in java?

976


How many types of memory areas are allocated by jvm?

1045


What is the function of compareto in java?

1055


java Technical questions asked by JPMC

5084


What is ascii code?

1268


You're given a Boolean 2D matrix, can you find the number of islands?

1111


What is the meaning of flag day?

1024


What are java annotations?

1164


What is the major advantage of external iteration over internal iteration?

1111