Impetus Technologies interview question

Basics of java