Accenture interview question

I was asked Java basic OOPS concepts