DXC Technology Interview Question

Basics of java language