Pregunta de entrevista de DXC Technology

Basic java question with syntax