Data encapsulation in oops

Data Encapsulation:

  • Data Encapsulation is a process of wrapping up of data in a single unit.
  • With data encapsulation, we can achieve security to the data (data hiding or information hiding).
  • Whenever, we want to send the data from client to server over the network, it must be sent in the form of Java object only, since by default, the data which is encapsulated with an object is encrypted.

Leave a Reply

Your email address will not be published. Required fields are marked *