Persistent Systems interview question

java basics