Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Explain the Encapsulation principle in Java?

7 like 0 dislike
Hello
Explain the Encapsulation principle in Java?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
 
Best answer
Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.
answered 1 year ago by DBA-boss (120,990 points)

Related questions

7 like 0 dislike
1 answer
7 like 0 dislike
1 answer
5 like 0 dislike
1 answer
5 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
7 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)