Question d’entretien chez Propel Technology Group

How encapsulation works in Java? What is OOPS? Why Inheritance?