DXC Technology interview question

Basic question about java and senium