Pregunta de entrevista de Infosys

Technical question on java and some real time examples