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 a local, member and a class variable?
Which method cannot be overridden in java?
What is keyset in java?
How do you start a thread?
Can a class have multiple subclasses?
What is classpath?
What is the purpose of static methods and variables?
What is meant by stack and queue?
What is the java virtual machine?
What is the significance of continue jump statement? Explain with an example.
Give few difference between constructor and method?
What is casting in java programming?
Define a package.
What is indexof in java?
What are some examples of variable costs?