Wipro interview question

Java oops concepts and explanation