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

Why for each loop is used?

1011


What is constructor chaining and how is it achieved in java?

1142


How do you compare two objects?

932


Which collection does not allow duplicates in java?

974


Is java map thread safe?

953


What is anti pattern in java?

964


Is integer passed by reference in java?

1007


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8101


What is the constructor?

1049


Is java hard to learn?

898


What is a protected method?

1135


How will you communicate between two applets?

1157


What is difference between printf and scanf?

1141


How do you sort in java?

977


How many days will it take to learn java?

931