Publicis Sapient Interview Question

What is Encapsulation and explain with an example.

Interview Answer

Anonymous

Apr 6, 2023

Encapsulation in Java is the process by which data (variables) and the code that acts upon them (methods) are integrated as a single unit.