Learning Partner

Cognizant Angular + Java Interview Questions for 3+ years

Shared question set for 3+ years of experience. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. Explain your current project, the modules you have worked on, and how it is deployed.
  2. What are the main features introduced in Java 8?
  3. What is the difference between an Interface and an Abstract Class?
  4. What is a default method in Java?
  5. What is the Stream API? Where have you used it?
  6. What is the difference between map() and flatMap()?
  7. What is exception handling? How do you handle exceptions in your application?
  8. What is the difference between HashMap and ConcurrentHashMap?
  9. Explain Spring Boot and why we use it.
  10. What is Dependency Injection in Spring?
  11. What is @SpringBootApplication?
  12. What is @ComponentScan?
  13. How do you create a REST API in Spring Boot?
  14. What is the difference between Authentication and Authorization?
  15. How does JWT authentication work?
  16. What are HTTP status codes? Explain 200, 400, 401, 403 and 500.
  17. What is a JOIN? Explain INNER JOIN and LEFT JOIN.
  18. What is the difference between DELETE, TRUNCATE and DROP?
  19. What is the difference between UNION and UNION ALL?
  20. How would you find the 5th highest salary from an Employee table?
  21. What is a component in Angular?
  22. What are directives? What types of directives have you used?
  23. What is data binding? Explain the different types.
  24. How do you implement routing in Angular?
  25. How do you pass an ID while navigating from one component to another?
  26. What is the difference between Template-Driven and Reactive Forms?
  27. How do you share data between parent and child components?
  28. What is a service in Angular and why do we use it?
  29. If I give you an API that returns an array of employees, how would you call the API and display the data in a table?
  30. Your API works in Postman but doesn't work from Angular. What would you check?

Browse Angular + Java question sets