Home > DeveloperSection > Interviews > Can you explain about information hiding in Java ?

Posted on    July-07-2015 11:18 PM

 Java Java  OOPS 
 1 Answer(s)
  389  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    July-07-2015 11:18 PM

Information hiding helps objects to hide critical information from other objects accessing it. It effectively decouples the method being invoked from the internal workings of a function. By doing so, object can change the hidden portions of the function without changing the calling code. Encapsulation is a common technique programmers use to implement information hiding.

Don't want to miss updates? Please click the below button!

Follow MindStick