Société Générale interview question

What is the difference between abstraction and encapsulation?

Interview Answer

Anonymous

16 Apr 2026

Abstraction in Java is used to hide the logic of the code and showing only implementations, and it can be accessed without access modifiers, but Encapsulation means binding up the data variables and data methods into a single unit for loose coupling.