ING interview question

Java OOP, Code outputs and explanations for it