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 are the java ide's? Explain

1066


What is the preferred size of a component in java programming?

1007


Why do we need array in java?

1030


What is difference between module and function?

1197


Can a static method be overridden in java?

1027


What are adapter classes?

1059


What is an example of a constant variable?

1098


Can we cast any other type to boolean type with type casting?

962


Is 0 an even number?

990


What is formatted output in java?

973


Can we write a class without main method in java?

969


What are the types of literals?

1194


How we can skip finally block of exception even if some exception occurs in the exception block in java?

953


what is the purpose of using rmisecuritymanager in rmi?

975


What is the purpose of using java.lang.class class?

1022