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
Why we used break and continue statement in java?
What is the benefit of singleton pattern?
Explain java thread life cycle.
What is thread synchronization in java?
What checkbox method allows you to tell if a checkbox is checked?
What is a instance variable?
What is a prefix function.write down a code to compute prefix function.
What are design patterns and please explain?
Explain the public class modifier?
What are the different types of data structures in java?
What is ‘is-a ‘ relationship in java?
What is the difference between an if statement and a switch statement?
What is the use of conditional statement?
How do you sort arraylist in descending order?
Which graphs are functions?