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 empty list in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
What is the use of optional ?
What is entry set in java?
Explain serialization and deserialization in java?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What is encapsulation in java?
What is the internal implementation of set in java?
What is the difference between && and & in java?
What variables are stored in stack?
What is strings in java?
Implement two stacks using a single array.
What is the difference between preemptive scheduling and time slicing?
What type of value does sizeof return?
Does java allow overriding static methods ?