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

Answer Posted / dsr

Encapsulation is a mechanisum,thet binds together data and
code. for example:Bean
In bean, all the variables are private. we can't access
that variables with the help of class object.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does arraylist work in java?

788


How many bits are in a sentence?

801


Can a constructor be private and how are this() and super() method used with constructor?

750


What is the console in java?

909


Can we declare an interface as final?

786


What is connection class in java?

741


What is the finalize method do?

832


Explain the difference between call by refrence and call by value?

792


Can I use % with real numbers?

758


What is meant by final class?

781


How do you add spaces in java?

753


What do you understand by private, protected and public?

748


What is sorting in java?

741


What is the difference between yield() and sleep()?

773


What is the main use of java?

842