FDM Group interview question

What is encapsulation in Java?

Interview Answer

Anonymous

Jul 27, 2024

Encapsulation is how we protect our application from being modified by the user by setting fields in a class to private.