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 core java called?
What is the difference between member variables initialization and assignment in a constructor?
What does t in java mean?
Write a java program to count the number of words present in a string?
How can the checkbox class be used to create a radio button?
Why we used break and continue statement in java?
Why declare Main() inside the class in java ?
Explain tree set and its features?
How to find the largest value from the given array.
What will happen when using pass by reference in java?
Can we have any other return type than void for main method?
What is a singleton puppy?
what is interface in java? Explain
What is bom encoding?
Can you call one constructor from another if a class has multiple constructors?