Cognizant interview question

Oop pillars Single ton class Spring boot annotations Collection