Pregunta de entrevista de Cognizant

Simply java question basic of java