Nam Technologies interview question

basics in java