Pergunta de entrevista da empresa DXC Technology

Basic java question with syntax