YASH Technologies interview question

Oops and other java related.