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

Answer Posted / venki

Private : It can access with in the class only
public :It can Access Any where
proteced:It can access with in the package and sub class of
the package also
default:it access with in the package only.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should you use arraylist and when should you use linkedlist?

977


What happens when a thrown exception is not handled?

1197


What is time complexity java?

1039


What is method reference?

1034


How can we make a class virtual?

1178


Can we override private method in java?

1137


How do you take thread dump in java?

1053


Why do we need strings in java?

1038


Explain the key functions of data binding?

1065


How many types of literals are there in JAVA?

1100


Explain what do you mean by functional overloading in java?

1065


What is a superclass?

1404


Is the empty set a singleton?

1026


What is the difference between assignment and initialization?

1092


Is java a prime method?

1038