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

Are private methods final?

903


What is the use of default method in interface in java?

1009


How do you reverse a list?

1010


Why do we use predicate in java?

1049


How do you find the independent variable?

1053


When throws keyword is used?

1000


What is charat java?

961


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

962


What is the difference between checked exception and unchecked exception?

1017


What is the purpose of the main method?

992


What is java virtual machine? Explain

1033


Why we used vector class?

1069


What is memory leak and how does java handle it?

985


How do you use find and replace?

958


Tell us something about set interface.

997