Hexaware Technologies interview question

basics of java,oops concepts