Pregunta de entrevista de Hexaware Technologies

What is oops? inhertiance in java? C-Java which is better.