what is meant by Encapsulation?Explain with an example?

Answer Posted / rekha

ENCAPSULATION MEANS WRAPPING DATA MEMBERS & MEMBER FUNCTION
IN A SINGLE UNIT.EXA:-CLASS

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I install eclipse?

573


How do you find lambda?

570


Is it better to learn java or python?

544


What is the difference between java se and java ee?

502


What is transaction management in java?

576






What is @resource annotation in java?

569


What is loose coupling in java?

548


What do you mean by exception handling?

552


What are jdk tools?

574


How do javabeans work?

554


How do I create an executable jar file?

611


Explain working of java virtual machine (jvm)?

575


ioc vs dependency injection?

1986


Can java program run without jdk?

592


If you’re overriding the method equals() of an object, which other method you might also consider?

593