Learning Partner

Cognizant Angular + Java Interview Questions for Not specified

Shared question set for Not specified of experience, Java Full Stack. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. What is wildcard routing in Angular?
  2. What is the difference between lazy loading and eager loading?
  3. How does Angular routing work?
  4. What is polymorphism? Explain method overriding with code.
  5. What happens with Parent p = new Child() followed by a method call?
  6. Why is Child c = new Parent() invalid?
  7. What is the difference between Comparator and Comparable?
  8. What are the important Java 8 features?
  9. What is a functional interface? Is @FunctionalInterface mandatory for an interface that contains a single abstract method?
  10. Can a class have the static keyword?
  11. Explain association and aggregation.
  12. Write Java Stream programs to find missing numbers in a sequence.
  13. What is the use of CompletableFuture?
  14. Write a Java program to print odd and even numbers using two threads.
  15. Explain synchronized, wait(), notify() and notifyAll().
  16. What is the difference between Runnable and Callable?
  17. What is the difference between execute() and submit()?
  18. How does ExecutorService work?
  19. What is RejectedExecutionException, and how is it handled?
  20. What are race conditions, deadlocks, starvation and livelocks?
  21. How do you safely process tasks using a thread pool?
  22. How do you configure Kafka producers and consumers?
  23. How do you send multiple messages to a Kafka topic?
  24. Explain consumer groups, partitions, offsets and polling.
  25. What happens if a consumer polls messages, submits them to executor threads, and immediately polls again?
  26. How do you prevent committing offsets before successful processing?
  27. How do you handle retries, custom exceptions and Dead Letter Topics (DLT)?
  28. How do you handle duplicate messages and failed payment events?
  29. What is role-based access control and how does it work?
  30. What things exist in a JWT token?
  31. What is a circuit breaker, and why is it needed?
  32. How do you handle service failures, retries and timeouts?
  33. How do you prevent cascading failures?
  34. How do you maintain consistency across microservices?
  35. How do you troubleshoot slow APIs and production issues?
  36. What is the use of the Saga design pattern?

Browse Angular + Java question sets