DXC Technology interview question

Basics of java language