Anonymous interview question

Java basics and object oriented programming