MagicBricks Interview Question

Output of java code.