What is meant by Encapsulation? Can you write a class to
explain encapsulation?
Answer Posted / bln
Encapsulation is process binding data with an object.
Object consists data and methods, where methods helps to
extract or set data.
All classes developed using OOPS concepts follow the
encapsulation.
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What is runtime polymorphism or dynamic method dispatch?
What is advantage of java?
What is difference between variable declaration and definition?
How do you compare two objects?
What is abstract class constructor called?
What is java lang object?
Why map is used in java?
Difference between process and thread?
What is method reference in java?
What is difference between iterator and enumeration in java?
Define locale.
How does linkedhashmap work in java?
What is a nested structure?
Differentiate between stringbuffer and stringbuilder in java.
How do you do math powers in java?