Pregunta de entrevista de Cognizant

How does a java code work?