Pregunta de entrevista de Tata Consultancy Services

Basic java question and oops concept