SDE2 Interview Questions at Infosys

Published July 22, 2026 · Updated July 22, 2026

11 real SDE2 interview questions asked at Infosys. Covers Technical, System Design, HR, Scenario rounds. Sourced from engineers who cleared the loop.

11 questions
720 upvotes
Rounds: 4
Top topic: domain

Interview Signals — What Infosys Asks SDE2s

Frequently Asked Topics
domain6x
react2x
system-design1x
behavioral1x
nodejs1x
Interview Rounds
Technical8q
System Design1q
HR1q
Scenario1q
Experience Level
2-5 years1q
3-6 years1q
2-4 years1q

All SDE2 Questions Asked at Infosys

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 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 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
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 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 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
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 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
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
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
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

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 →

Other companies hiring SDE2s

Amazon SDE2 questions Google SDE2 questions Microsoft SDE2 questions Flipkart SDE2 questions TCS SDE2 questions Swiggy SDE2 questions

More at Infosys

All Infosys questions Infosys interview process Prepare for Infosys

Frequently asked questions

What topics does Infosys ask SDE2s?
Common topics: domain, react, system-design, behavioral, nodejs.
What rounds are there in Infosys SDE2 interview?
Reported rounds: Technical, System Design, HR, Scenario.
What experience level does Infosys hire SDE2s at?
Most reported experience: 2-5 years.