Pregunta de entrevista de Interactive Brokers

Basic Java questions. Predict the output of some code.