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


Please Help Members By Posting Answers For Below Questions

Is null == null in java?

856


What is length in java?

762


Does importing a package imports its sub-packages as well in java?

752


What is the functionality of the stub?

786


what is heap memory?

854


What are the core java topics?

785


Difference between static synchronization vs. Instance synchronization?

822


In java, what is the difference between method overloading and method overriding?

807


What is final keyword in java?

774


Is java jre still free?

718


How many threads can java run?

814


Define immutable object?

840


What is the method overriding?

825


Explain abstract class in java?

765


Is constructor inherited?

741