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
Which sorting algorithm is in place?
What is array list in java?
What are loops in java?
Are generics important java?
Can we override constructors in java?
Explain abstract class in java?
Explain an algorithm to find depth of a binary tree.
What is null data type?
Which is easier .net or java?
What is the difference between array list and vector in java?
What is the purpose of default constructor?
Difference between string, string builder, and string buffer?
Can we force the garbage collection to run?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Explain different ways of creating a thread?