Capgemini interview question

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