ABCDEFG interview question

Its all about java oops concepts....