What is Information Hiding in Java ?

Information hiding is OOPS concept. In Java you can use encapsulation to do Information hiding. An object can use the access modifiers like-public, private, protected to hide its internal details from another object. This helps in decoupling the internal logic of an object from outside world.

By using Information hiding, an object can change its internal implementation without impacting the outside calling client’s code.



You May Interest

Why Did Oracle Release a New Version of Java Like Java 8 ?

How Can We Analyze the Dependencies in Java Classes and Packages ...

What is the Use of Jsp:useBean in JSP ?

How Will You Use Other Java Files of Your Application in JSP Code ...

What are the Different Types of Events Provided by Spring Framewo ...