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

Answer Posted / dhawal

Encapsulation is process of hiding data
for example if access specifier we are using for accessing
class is private then only that class object can access the
methods and variables in that class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do bitwise operators do?

533


Why java is object oriented?

592


What is the difference between the boolean & operator and the && operator in java programming?

572


What are the main uses of the super keyword?

560


What are the types of literals?

571






What are the types of methods in java?

584


How can I become a good programmer?

496


Is 0 an even number?

557


Why java doesn’t support multiple inheritances?

592


What is the range of the short type?

594


Why is sizeof not a function?

555


Why is stringbuffer faster than string?

495


What is charat ()?

531


When do we use hashset over treeset?

538


When we should use serialization?

572