Pergunta de entrevista da empresa Andesa Services

What is the output of this java code?