Capgemini Interview Question

Core java concept, Oops, Prime number, Even or odd number