Accenture Interview Question

I was asked Java basic OOPS concepts