Insurity interview question

basic java questions used in past projects