whst is encapsulation?when u encpsulate actually while
devoloping code?

Answer Posted / a.jyotsna

Encapsulation is the mechanism that binds together code and
the data it manipulates,
and keeps both safe from outside interference and misuse

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main difference between variable and constant?

519


Why does java not support operator overloading?

654


What is difference between array and arraylist in java?

456


What is the buffer limit?

550


How to calculate the length of a singly linked list in java?

578






What are the elements of java?

548


Is a method a function?

541


If an object is garbage collected, can it become reachable again?

537


What does the “final” keyword mean in front of a variable? A method? A class?

540


Explain about serializable interface in java?

572


What is difference between arraylist and list in java?

573


What is thread safe singleton?

507


Can a class have multiple subclasses?

581


Give a practical example of singleton class usage?

583


What does main method?

552