Zensar Technologies interview question

Basic Java questions