FICO interview question

Basic questions on java