Capgemini interview question

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