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

What is the lifetime and scope of a variable?

1060


What is treemap in java?

1038


What are the important methods of java exception class?

1204


What is reflexive association?

1872


Explain Basics of OOP Language in java

1109


Can set contain duplicates?

1047


What is the symbol for average?

1081


How do you use compareto?

988


What is re-factoring in software?

1104


What is basic syntax?

1107


Can we call virtual funciton in a constructor ?

2239


Is singleton class thread safe?

1054


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1135


Is singleton thread safe in java?

1021


What are different access specifiers in java? Explain

1184