Programming Tutorials

Explain the Encapsulation principle.

By: Karthik in Interview Tutorials on 2012-06-16  

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.

Add Comment

* Required information


No comments yet. Be the first!

Most Viewed Articles (in Interview )

Explain the Encapsulation principle.

What is Collection API?

Interview Question: What is Local client view in EJB?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: What is local interface. How values will be passed?

What are all the different scope values for the tag?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

Interview Question: Does Struts include its own unit tests?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: Where can I get a copy of Struts?

Question: What is an output comment in JSP?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Interview Question: What is Struts Validator Framework?

Differentiate between .ear, .jar and .war files.

What is JSP declaration?

Latest Articles (in Interview)