DXC Technology interview question

Basics of oops some basics of Java