BlackRock interview question

Abstraction and Encapsulation in details and how it is done in Java