DXC Technology interview question

All Java Basics