Core Java / OOP
Explain the four principles of OOP.
What is the difference between method overloading and overriding?
What is the difference between == and .equals() in Java?
Explain static, final, and abstract keywords with examples.
What is synchronization in Java? What is a deadlock and how to avoid it?
Explain HashMap vs Hashtable vs ConcurrentHashMap.
What are checked vs unchecked exceptions?
Coding / Problem-Solving
Reverse a string.
Swap two numbers without using a third variable.
Spring / Web / Backend
What is Spring Boot?
What is the difference between Spring, Spring Boot, and Spring MVC.
What is @RestController? How is it different from @Controller?
What does @Autowired do? How to resolve ambiguity if multiple beans exist?
What is dependency injection?
Explain REST APIs and common HTTP status codes.
What is the difference between GET, POST, PUT, and DELETE?
Database / SQL
Write an SQL query to fetch the second highest salary.
Where do you see yourself in the next 5 years?
Are you willing to relocate / work in shifts?
Do you have any questions for us?
“Explain the four pillars of OOP (Encapsulation, Abstraction, Inheritance, Polymorphism) with examples.”
It’s like their go-to starter — if you nail this, the interview usually flows smoothly into Java basics, coding, and then Spring/SQL.
The following metrics were computed from 1 interview experience for the Cognizant Java FSE role in Calcutta, India.
Cognizant's interview process for their Java FSE roles in Calcutta, India is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for Cognizant's Java FSE interview process in Calcutta, India.