what is meant by Encapsulation?Explain with an example?

Answer Posted / sanjay deorari

Containing and hiding information about an object, such as
internal data structures and code.
Binding together of related data and functions to
perform some set of specific operations is encapsulation.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java lang exceptionininitializererror?

492


What is dependency injection in java?

483


Can optional be null?

535


What does public static void main(string[]) mean?

535


What is aop java?

470






What is gwt in java?

507


What are jpa annotations?

484


What do you understand by casting in java language? What are the types of casting?

445


What is war file in java?

578


What is explicit casting?

554


What is the difference between collection and stream?

478


Is lambda functional programming?

482


How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))

1357


What is a singleton in java?

496


How do you run an executable jar file?

473