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

Can an interface implement another interface?

576


Describe what a thread-local variable is in java?

571


What is data string?

499


Which package is imported by default?

637


What are the advantages of exception handling in java?

650






Can singleton class be inherited in java?

518


What is the meaning of find and replace?

527


Where can I find jdk in my computer?

468


Can bool be null?

526


How many bytes are there?

542


What do you understand by garbage collection in Java? Can it be forced to run?

555


What kind of variables can a class consist?

591


Can we store variables in local blocks?

789


What is string manipulation?

499


What is a subsequence of a string?

549