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
Explain about assignment statement?
What is the do while loop syntax?
What is a java list?
What is difference between an object and a class?
What do you mean by platform independence of Java?
Is java se free?
What is the difference between abstraction and encapsulation?
Convert Binary tree to linked list.
What is dot operator?
How does enum work in java?
What is the purpose of checked and unchecked exceptions in JAVA?
What is return data type?
Give an example of use of pointers in java class.
How do you decide when to use arraylist and linkedlist?
What are inbuilt functions?