Pregunta de entrevista de Enterprise Mobility

Explain how inheritance works in java?