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 JDBC Driver interface?How can you retrieve data from the ResultSet

2154


Does every java program need a main?

1040


how its run?

1120


What is thread safe singleton?

1006


What is the size of a string in java?

1075


What is parsing in grammar?

1090


whatis Home interface and Remoteinterface? with example?

2040


Can a static method be final?

1113


Is java 1.7 the same as java 7?

1105


What is the static import?

1156


Difference between process and thread?

1091


How do you check if two strings are equal in java?

1053


What class allows you to read objects directly from a stream in java programming?

1144


What does split function do in java?

1082


What is a numeric format?

1163