Pregunta de entrevista de Tata Consultancy Services

As usual basic java concepts,