HCLTech interview question

Java questions oops concepts maily