Interactive Brokers Interview Question

Basic Java questions. Predict the output of some code.