Pregunta de entrevista de Tata Consultancy Services

A basic java programming question