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

What is core java called?

919


What is the difference between member variables initialization and assignment in a constructor?

1173


What does t in java mean?

938


Write a java program to count the number of words present in a string?

937


How can the checkbox class be used to create a radio button?

976


Why we used break and continue statement in java?

1059


Why declare Main() inside the class in java ?

990


Explain tree set and its features?

999


How to find the largest value from the given array.

964


What will happen when using pass by reference in java?

926


Can we have any other return type than void for main method?

902


What is a singleton puppy?

919


what is interface in java? Explain

903


What is bom encoding?

946


Can you call one constructor from another if a class has multiple constructors?

968