HCLTech interview question

Java Basics and OOPS concepts