Fortech SRL interview question

basic oop questions in Java language