encapsulation:
The bundling of data and procedures into a container (or capsule) for relevant properties (contained in variables) and methods (used for manipulating variables).
example: class
information hiding
The design principle of writing modular code segments that can be used by other programmers knowing only the details of how to interface with the module. In other words the programmer would not need to know anything about the inner workings of the module to use it. This type of information would be hidden from him or her.
example: TV, System.out.println