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
What is JDBC Driver interface?How can you retrieve data from the ResultSet
Does every java program need a main?
how its run?
What is thread safe singleton?
What is the size of a string in java?
What is parsing in grammar?
whatis Home interface and Remoteinterface? with example?
Can a static method be final?
Is java 1.7 the same as java 7?
What is the static import?
Difference between process and thread?
How do you check if two strings are equal in java?
What class allows you to read objects directly from a stream in java programming?
What does split function do in java?
What is a numeric format?