Thomson Reuters interview question

Core java basics