whst is encapsulation?when u encpsulate actually while
devoloping code?
Answer Posted / dhawal
Encapsulation is process of hiding data
for example if access specifier we are using for accessing
class is private then only that class object can access the
methods and variables in that class
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can a class be final?
What is a memory leak in java?
What is contract between hashcode and equal method?
What is the inheritance?
Give any two differences between C++ and java.
Explain the difference between map and flatmap stream operation?
How does multithreading take place on a computer with a single cpu?
What is rule of accessibility in java?
What is meant by javabeans?
What is static data type in java?
Explain try and catch keywords in java?
Explain runtime exceptions?
What is array and arraylist in java?
What is blank final variable?
Why to use nested classes in java?