Capgemini Interview Question

OOPS concepts, basic Java questions and a code to print prime numbers.