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

What are the various access specifiers for java classes?

538


What is arraylist e?

553


What is the program compilation process?

579


What is palindrome in java?

550


Explain wait(), notify() and notifyall() methods of object class ?

583






What type of language is java?

532


Java is pass by value or pass by reference? Explain

527


Can we force garbage collector to run ?

564


What is indexof in java?

506


Which containers use a flowlayout as their default layout in java programming?

497


What is use of inner class in java?

508


Can you explain the usages of class.forname()?

597


What is independent and dependent variables in research?

460


How do you add an arraylist to an array in java?

499


Which is better singleton or static class?

499