Cognizant interview question

core java questions on oops collection thread exception and spring