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

What is the Use of Interceptor Design Pattern in Java ?

What is the Difference Between remove Methods of Collection and I ...

Java How To Find The Average Of 10 Numbers Using A While Loop

What is the Difference Between DOM and SAX Parser in Java ?

What is the Purpose of Properties File in Java ?