Java Tutorial

Data-Encapsulation

Data encapsulation is the process of wrapping up on data and associated methods in a single unit?.

Data encapsulation is basically used for achieving data/information hiding i.e., security.

When we want to send the data from client to the server we must always send in the form of JAVA object only. Since, by default the JAVA object is in encrypted form (we should not send the data from client to the server in the form of fundamental data).