Question d’entretien chez Bloomberg

Given Java code, why does it not execute as it should