FICO interview question

Questions were from Java and Oops