HiTech Solutions interview question

Basics to in depth Java question