HCLTech interview question

Java interview questions there was