There was only one round.
In the technical round at Infosys, the interview focused on core Java concepts, problem-solving, and Spring Boot fundamentals. It began with object-oriented programming, where I was asked to explain the four pillars—encapsulation, inheritance, polymorphism, and abstraction—with real-world examples. The interviewer then moved on to Java Collections, asking about differences between ArrayList and LinkedList, and the internal working of HashMap, especially post-Java 8. Concurrency was tested through questions on synchronized, volatile, and ConcurrentHashMap. A coding problem followed, where I was asked to implement an LRU Cache using Java, emphasizing optimal time complexity for get and put operations. Finally, the discussion shifted to Spring Boot, covering dependency injection, the use of annotations like @Component, @Service, and @Repository, and how auto-configuration works behind the scenes. The round ended with questions on REST API development, exception handling, and how I manage logging and debugging in production-like environments.