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

How are java objects passed to a method and what are native methods?

590


Is 0 true or false in java?

515


What is the difference between length and length () in java?

523


Are maps ordered java?

504


Explain parallel processing in java8?

635






How to use arraylist in java netbeans?

508


Is age discrete or continuous?

684


What is a package in java? List down various advantages of packages.

753


which pattern is default in scanner package?

1799


What is the size of an array?

547


What is private protected in java?

546


What is difference between this and super keyword?

512


What is the purpose of using the java bean?

566


What are the basic interfaces of java collections framework?

599


What is a list in java?

504