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...

whst is encapsulation?when u encpsulate actually while
devoloping code?

Answer Posted / jag bhushan

Encapsulation means wrapping of data and the accessing
methods in one unit and hiding the data from outside world.
the data can be accessed only by using getter/setter method
so that no one can set a wrong value for a vriable. like
weight can not be less than zero. so if anyone want to set
the weight, it have to set only be using getter/setter.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are synchronized methods and synchronized statements in java programming?

969


Can we force the garbage collection to run?

896


What is passing value java?

998


When do we use synchronized blocks and advantages of using synchronized blocks?

1174


Is there a sort function in java?

920


What is difference between array and arraylist in java?

933


What is serialization in java?

1006


Explain an algorithm to find depth of a binary tree.

991


What is the difference between a break statement and a continue statement?

989


What is string intern in java?

976


What is jee6?

1012


What is java console application?

943


What does += mean coding?

883


Explain some best practices you would apply while using collection in java?

980


What is incompatible types in java?

985