Cognizant Interview Question

Basic of OOPS Java SQL some aptitude questions and tested some learning abilities