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 is meant by Encapsulation? Can you write a class to
explain encapsulation?

Answer Posted / srinivasa

All the javabeans written in java follows encapsulation.
In java bean variables are declared as private for
security. will be accessed using setter and getter method.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why bytecode is called bytecode?

1110


What are the four integer types supported by java?

989


What are predefined functions?

1072


What is public/private protected in java?

1001


how to create multithreaded program? Explain different ways of using thread? : Java thread

917


Give any two differences between C++ and java.

1093


What is primitive array?

864


Explain listiterator and methods in listiterator?

966


What is protected in java?

956


How many bytes is a char in java?

978


Why is the main method declared static?

1084


can used Protected Class outside Function.?

1062


What is independent and dependent variables in research?

817


What is runtime polymorphism or dynamic method dispatch?

975


Explain about complier design(phases)

1033