Recently Appeared for Nagarro Interview sharing my experience
393
Apr 13, 2026

I recently attended an interview at Nagarro for a Java Backend role.

Core Java

  1. Difference between abstract class and interface
  2. what are default methods in interfaces?
  3. What happens if two interfaces have same default methods?
  4. Difference between Comparator and Comparable
  5. HashMap & TreeSet internally working

Multithreading & Concurrency
6. Runnable vs Callable – when to use which?

  1. What is the volatile keyword in Java?
  2. Explain ConcurrentHashMap (internal working)
  3. Compeltable Future & Future
  4. Write Even Odd program using wait notify

Java 8 Features
11. What are terminal vs intermediate operations in Streams?

  1. Stream vs Parallel Stream internal working of stream.

He Asked Scenario Baed Question

  1. Your API is handling 1000k+ requests/sec and performance is degrading. How would you scale and optimize it?

  2. You are building a payment API and receiving duplicate requests. How will you ensure idempotency?

  3. Money is deducted from the account but order creation fails. How will you ensure data consistency?
    -------------------------------------------SpringBoot & Microservices
    What is auto-configuration in Spring Boot? How does it work?

  4. What is the use of @SpringBootApplication?

  5. What are Spring Boot starters?

  6. What is dependency injection? Types?

  7. How do you validate request payloads?

  8. How does Spring Boot auto-configure beans?

  9. How will you implement caching?

  10. How will you design a scalable system in Spring Boot?

  11. ApiGateway, LoadBalancer

  12. Which Design pattern you have used recently?
    -------------------------------------------Coding Questions

  13. Largest odd lenth string

  14. Minimum steps to reach stairs

  15. 2nd non repeating using Streams Java8

  16. Group Employee by department and their roles

  17. Mergesort code

  18. Longest non repeating substring

  19. Largest subarray with sum 0

Comments (3)