Magna Infotech Interview Question

Core java basic program like, Prime number,Swapping of two number