Infosys Interview Questions 2026
Published July 22, 2026 · Updated July 22, 2026
14 real interview questions asked at Infosys. Covers Domain, System Design, Behavioral, Business Analysis / Use Cases, React / Hooks, React / Performance, Node.js / Middleware. Reported by engineers who went through the Infosys process.
14 questions
493 engineers asked
907 upvotes
Domain (8)
Infosys
Medium
Technical round
Java
Explain the difference between JDK, JRE, and JVM. How are they related? Describe the JVM internals: class loader, bytecode verifier, interpreter, JIT compiler, garbage collector, and how they work together to run a Java program.
↑ 43 upvotes · 45 engineers asked this · SDE2
Infosys
Medium
Technical round
Java
What is the difference between String, StringBuilder, and StringBuffer in Java? When would you use each? Explain immutability, thread safety, performance implications, and give an example where using String in a loop causes excessive object creation.
↑ 98 upvotes · 39 engineers asked this · SDE2
Infosys
Medium
Technical round
JavaSpring Boot
How do you implement custom validation in Spring Boot? Explain the approach using @Constraint and ConstraintValidator, where to place the annotation, and how to return meaningful error messages through BindingResult.
↑ 74 upvotes · 28 engineers asked this · SDE2
Infosys
Medium
Technical round
Java
Explain the Java Memory Model. What are heap and stack? How does garbage collection work? Describe generational GC (Young, Old, Metaspace), GC roots, mark-and-sweep, and how to diagnose memory leaks with tools like VisualVM or jmap.
↑ 89 upvotes · 34 engineers asked this · SDE2
Infosys
Medium
Technical round
JavaSpring Boot
What are design patterns? Explain Singleton, Factory, and Observer patterns with Java code examples. In which Spring Boot components are these patterns used internally?
↑ 62 upvotes · 39 engineers asked this · SDE2
Infosys
Medium
Technical round
JavaSpring Boot
What is the difference between checked and unchecked exceptions in Java? When should you use each? Explain the exception hierarchy and best practices for custom exceptions in a Spring Boot REST API.
↑ 55 upvotes · 34 engineers asked this · SDE1
Infosys
Medium
Technical round
JavaSpring BootREST
Explain REST API best practices. What makes an API RESTful? Cover: proper use of HTTP verbs, status codes, versioning strategies (/v1/users vs Accept header), pagination (cursor vs offset), and HATEOAS.
↑ 60 upvotes · 38 engineers asked this · SDE2
Infosys
Easy
Screening round
Java
What is multithreading in Java? Explain synchronised keyword, wait/notify, and the difference between Thread and Runnable. Write a simple producer-consumer implementation using BlockingQueue.
↑ 64 upvotes · 43 engineers asked this · SDE1
System Design (1)
Infosys
Medium
System Design round
JavaSpring BootMySQL
Design a library management system. Include entities (Book, Member, Loan), relationships, and key operations: borrow, return, search, fine calculation. Discuss how to handle concurrent borrows of the last copy of a book.
↑ 61 upvotes · 22 engineers asked this · SDE2
Behavioral (1)
Infosys
Medium
HR round
Infosys works with large enterprise clients. Describe a time you had to explain a complex technical decision to a non-technical stakeholder. How did you frame it and what was the outcome?
↑ 46 upvotes · 27 engineers asked this · SDE2
Business Analysis / Use Cases (1)
Infosys
Easy
Technical round
3–6 Years
What is the difference between a use case and a user story? When do you use each?
↑ 68 upvotes · 53 engineers asked this · Business Analyst
React / Hooks (1)
Infosys
Hard
Technical round
2-5 years
A useEffect in your component is firing infinitely. The dependency array contains an object fetched from an API. You cannot change the API response. How do you stop the infinite loop?
↑ 53 upvotes · 21 engineers asked this · SDE2
React / Performance (1)
Infosys
Hard
Scenario round
3-6 years
A React form with 30 fields re-renders every field on every keystroke in any single field. No memoization exists. You cannot refactor to a form library. Fix it with minimal code changes.
↑ 58 upvotes · 26 engineers asked this · SDE2
Node.js / Middleware (1)
Infosys
Medium
Technical round
2-4 years
Your Node.js app has a middleware that adds request logging. In production, every slow request shows the same log message appearing 3 times. Why might this happen?
↑ 76 upvotes · 44 engineers asked this · SDE2
Practice these questions with AI feedback
Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.
Build my study plan →
Infosys interview guides by role
Infosys questions by technology
More companies
Frequently asked questions
Explain the difference between JDK, JRE, and JVM. How are they related? Describe the JVM internals: class loader, bytecode verifier, interpreter, JIT compiler, garbage collector, and how they work together to run a Java program.
Explain the difference between JDK, JRE, and JVM. How are they related? Describe the JVM internals: class loader, bytecode verifier, interpreter, JIT compiler, garbage collector, and how they work together to run a Java program.
What is the difference between String, StringBuilder, and StringBuffer in Java? When would you use each? Explain immutability, thread safety, performance implications, and give an example where using String in a loop causes excessive object creation.
What is the difference between String, StringBuilder, and StringBuffer in Java? When would you use each? Explain immutability, thread safety, performance implications, and give an example where using String in a loop causes excessive object creation.
How do you implement custom validation in Spring Boot? Explain the approach using @Constraint and ConstraintValidator, where to place the annotation, and how to return meaningful error messages through BindingResult.
How do you implement custom validation in Spring Boot? Explain the approach using @Constraint and ConstraintValidator, where to place the annotation, and how to return meaningful error messages through BindingResult.
Explain the Java Memory Model. What are heap and stack? How does garbage collection work? Describe generational GC (Young, Old, Metaspace), GC roots, mark-and-sweep, and how to diagnose memory leaks with tools like VisualVM or jmap.
Explain the Java Memory Model. What are heap and stack? How does garbage collection work? Describe generational GC (Young, Old, Metaspace), GC roots, mark-and-sweep, and how to diagnose memory leaks with tools like VisualVM or jmap.
Design a library management system. Include entities (Book, Member, Loan), relationships, and key operations: borrow, return, search, fine calculation. Discuss how to handle concurrent borrows of the last copy of a book.
Design a library management system. Include entities (Book, Member, Loan), relationships, and key operations: borrow, return, search, fine calculation. Discuss how to handle concurrent borrows of the last copy of a book.