Pergunta de entrevista da empresa Propel Technology Group

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