RBC interview question

I dont recall exactly but some general java questions