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

Does java trim remove newline?

1050


What is ‘is-a ‘ relationship in java?

1119


What are the two main uses of volatile in Java?

1095


What is class??

1299


How do I know if java is installed?

1154


What is methodological framework?

1094


What is the difference between stream and buffer?

1022


What are the approaches that you will follow for making a program very efficient?

1130


What is difference between core java and java ee?

950


What does nullpointerexception mean?

1142


what is bmg file and how to create that files?what will it contailn?

2396


Explain about object oriented programming and its features?

1070


Can we use synchronized block for primitives?

1131


What are java packages? What's the significance of packages?

1413


I want to re-reach and use an object once it has been garbage collected. How it's possible?

1075