CRISIL interview question

Java logics and explain the real time usage