Synechron interview question

What is encapsulation?

Interview Answer

Anonymous

16 Sept 2016

Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit.