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 is an interface be able to extend more than one interface but a class can’t extend more than one class?

1169


Will minecraft java be discontinued?

1172


Explain the difference between runnable and callable interface in java?

1056


How do you square a number in java?

1056


How will you serialize a singleton class without violating singleton pattern?

1965


Which of the classes will have more memory allocated?

976


Explain the overview of UDP messaging.

1129


What is port number in java?

1045


What is thread life cycle?

968


Can we override private methods?

1051


What is function overriding and overloading in java?

1116


What is the benefit of using enum to declare a constant?

1106


What is the difference between static class and normal class?

1032


What is the use of pattern in java?

1057


What is the importance of static variable?

1119