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

What is the use of accept () method in java?

1055


Can we define private and protected modifiers for the members in interfaces?

1054


Explain about collection interface in java?

943


What is java instanceof operator?

998


How does split work in java?

1008


Why use string handling in Java?

1002


Why Java is not pure Object Oriented language?

1067


How do you add an element to an arraylist in java?

897


What is polymorphism java example?

957


What is logical variable?

939


How do you square a number in java?

1017


Which java collection does not allow null?

1106


How do you sort a string in java?

915


Explain the difference between abstract class and interface in java?

947


What is keyword in oop?

921