Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Infosys Java Spring Boot Developer Interview Questions and Answers

Updated 23 Jun 2025

8 Interview questions

A Java Spring Boot Developer was asked 6d ago
Q. Write code for reversing a string in Java 8.
Ans. 

Java 8 provides a concise way to reverse a string using streams and collectors.

  • Use the StringBuilder class: StringBuilder sb = new StringBuilder(originalString); sb.reverse();

  • Utilize Java 8 Streams: String reversed = originalString.chars().mapToObj(c -> (char) c).reduce("", (s, c) -> c + s);

  • Another approach is to convert the string to a char array, reverse it, and create a new string: char[] charArray = orig...

A Java Spring Boot Developer was asked 6d ago
Q. What is the process for retrieving data from a database using a REST API in Spring Boot with Java?
Ans. 

Retrieve data from a database using REST API in Spring Boot involves creating a controller, service, and repository.

  • 1. Create a Spring Boot application with necessary dependencies (Spring Web, Spring Data JPA, etc.).

  • 2. Define an entity class that maps to the database table.

  • Example: @Entity public class User { @Id private Long id; private String name; }

  • 3. Create a repository interface extending JpaRepository for...

Java Spring Boot Developer Interview Questions Asked at Other Companies

asked in Infosys
Q1. explain new feature in java (labda, functional interface, default ... read more
asked in Allstate
Q2. What is the difference between Spring and Spring Boot?
asked in Infosys
Q3. What are java8 features? Why string is immutable? Difference betw ... read more
asked in Deloitte
Q4. Why do we have @functionalInterface if we can make any interface ... read more
asked in Infosys
Q5. What is the process for retrieving data from a database using a R ... read more
A Java Spring Boot Developer was asked
Q. What are stateless and stateful APIs?
Ans. 

Stateless API does not store client state on the server, while stateful API does.

  • Stateless API: Each request from client to server must contain all necessary information for the server to fulfill the request. No client state is stored on the server. Example: RESTful APIs.

  • Stateful API: The server stores client state, which can be accessed by subsequent requests. Example: HTTP sessions.

A Java Spring Boot Developer was asked
Q. What is the difference between Spring Boot and Spring?
Ans. 

Spring is a framework for building Java applications, while Spring Boot is a tool for easily creating stand-alone, production-grade Spring-based applications.

  • Spring is a framework that provides comprehensive infrastructure support for developing Java applications.

  • Spring Boot is a tool that simplifies the process of creating and deploying Spring-based applications.

  • Spring Boot includes embedded servers, which makes ...

A Java Spring Boot Developer was asked
Q. What is the difference between a REST controller and a normal controller?
Ans. 

Rest controllers are specifically used for RESTful web services, while normal controllers are used for traditional web applications.

  • Rest controllers are used to build RESTful web services that can accept and return JSON or XML data.

  • Normal controllers are used for traditional web applications that render HTML views.

  • Rest controllers use annotations like @RestController and @RequestMapping to define endpoints.

  • Normal ...

A Java Spring Boot Developer was asked
Q. What is a memory leak and how would you identify one?
Ans. 

Memory leak is a situation where a program uses memory inefficiently, causing memory to be allocated but not released.

  • Memory leak occurs when a program allocates memory but does not release it after it is no longer needed.

  • Identifying memory leaks can be done using tools like profilers to analyze memory usage over time.

  • Common signs of memory leaks include increasing memory usage over time, frequent garbage collecti...

A Java Spring Boot Developer was asked 5mo ago
Q. Method overriding Method overloading Exception Java 8 Find the 2nd non repeating character from a string Find the sum of square of even numbers
Ans. 

The question covers topics like method overriding, method overloading, exceptions, Java 8 features, and string manipulation.

  • Method overriding is when a subclass provides a specific implementation of a method that is already provided by its superclass.

  • Method overloading is when multiple methods have the same name but different parameters.

  • Exception handling is used to handle errors that occur during the execution of...

Are these interview questions helpful?
A Java Spring Boot Developer was asked
Q. What is singleton class? Inheritance, Polymorphism, Annotations in spring boot.
Ans. 

A singleton class is a class that allows only one instance of itself to be created and provides a global point of access to that instance.

  • Singleton classes are often used in Spring Boot for managing resources such as database connections or thread pools.

  • In Spring Boot, singleton beans are created by default, meaning that only one instance of a bean is created and shared across the application.

  • To create a singleton...

Infosys Java Spring Boot Developer Interview Experiences

9 interviews found

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in May 2025, where I was asked the following questions.

  • Q1. What is the process for retrieving data from a database using a REST API in Spring Boot with Java?
  • Ans. 

    Retrieve data from a database using REST API in Spring Boot involves creating a controller, service, and repository.

    • 1. Create a Spring Boot application with necessary dependencies (Spring Web, Spring Data JPA, etc.).

    • 2. Define an entity class that maps to the database table.

    • Example: @Entity public class User { @Id private Long id; private String name; }

    • 3. Create a repository interface extending JpaRepository for CRUD...

  • Answered by AI
  • Q2. What is dependency injection, and what are its types?
  • Ans. 

    Dependency injection is a design pattern that allows a class to receive its dependencies from an external source rather than creating them itself.

    • Promotes loose coupling between classes, enhancing testability and maintainability.

    • Types of dependency injection include Constructor Injection, Setter Injection, and Interface Injection.

    • Example of Constructor Injection: A class 'Car' that requires an 'Engine' can receive it t...

  • Answered by AI
  • Q3. Write a code for reversing a string in java 8.
  • Ans. 

    Java 8 provides a concise way to reverse a string using streams and collectors.

    • Use the StringBuilder class: StringBuilder sb = new StringBuilder(originalString); sb.reverse();

    • Utilize Java 8 Streams: String reversed = originalString.chars().mapToObj(c -> (char) c).reduce("", (s, c) -> c + s);

    • Another approach is to convert the string to a char array, reverse it, and create a new string: char[] charArray = originalS...

  • Answered by AI
  • Q4. Write a code for separating a string as character array.
  • Ans. 

    This code demonstrates how to convert a string into a character array in Java.

    • Use the `toCharArray()` method: `char[] chars = str.toCharArray();`

    • Example: `String str = "Hello"; char[] chars = str.toCharArray();`

    • Iterate through the array: `for (char c : chars) { System.out.println(c); }`

    • You can also use `String.split()` for separating by delimiters, but it returns a String array.

  • Answered by AI
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Jul 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. Method overriding Method overloading Exception Java 8 Find the 2nd non repeating character from a string Find the sum of square of even numbers
  • Ans. 

    The question covers topics like method overriding, method overloading, exceptions, Java 8 features, and string manipulation.

    • Method overriding is when a subclass provides a specific implementation of a method that is already provided by its superclass.

    • Method overloading is when multiple methods have the same name but different parameters.

    • Exception handling is used to handle errors that occur during the execution of a pr...

  • Answered by AI
  • Q2. About project
Round 2 - Behavioral 

(2 Questions)

  • Q1. About project many questions
  • Q2. Palindrome code
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Job Portal and was interviewed in May 2024. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. What is singleton class? Inheritance, Polymorphism, Annotations in spring boot.
  • Ans. 

    A singleton class is a class that allows only one instance of itself to be created and provides a global point of access to that instance.

    • Singleton classes are often used in Spring Boot for managing resources such as database connections or thread pools.

    • In Spring Boot, singleton beans are created by default, meaning that only one instance of a bean is created and shared across the application.

    • To create a singleton bean...

  • Answered by AI
Round 2 - One-on-one 

(1 Question)

  • Q1. In this round I have been asked for my current roles and responsibilities in current organization, Questions on Design pattern, CI/CD pipeline.

Interview Preparation Tips

Interview preparation tips for other job seekers - My interview experience was good at infosys.

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in May 2024. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. What are java8 features? Why string is immutable? Difference between the checked exception and unchecked exception? Difference between throw and throws? Difference between inner class and anonymous cla...
  • Ans. 

    Answers to common Java Spring Boot Developer interview questions.

    • Java8 features include lambda expressions, functional interfaces, streams, and default methods.

    • String is immutable in Java to ensure thread safety and prevent unintended modifications.

    • Checked exceptions are checked at compile time, while unchecked exceptions are not. Example: IOException vs NullPointerException.

    • throw is used to explicitly throw an excepti...

  • Answered by AI
Round 2 - HR 

(1 Question)

  • Q1. Some behavioural questions and discussed about packages

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Referral and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Difference between springboot and Spring
  • Ans. 

    Spring is a framework for building Java applications, while Spring Boot is a tool for easily creating stand-alone, production-grade Spring-based applications.

    • Spring is a framework that provides comprehensive infrastructure support for developing Java applications.

    • Spring Boot is a tool that simplifies the process of creating and deploying Spring-based applications.

    • Spring Boot includes embedded servers, which makes it ea...

  • Answered by AI
  • Q2. What is stateless and stateful API
  • Ans. 

    Stateless API does not store client state on the server, while stateful API does.

    • Stateless API: Each request from client to server must contain all necessary information for the server to fulfill the request. No client state is stored on the server. Example: RESTful APIs.

    • Stateful API: The server stores client state, which can be accessed by subsequent requests. Example: HTTP sessions.

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Explain new feature in java (labda, functional interface, default) , what is stream api , filter value not contain null, what is microservice, explain in real time , what is http vs https, inner join , out...
  • Ans. 

    Explanation of Java features, Stream API, microservices, HTTP vs HTTPS, and SQL joins.

    • Lambda expressions allow for concise syntax to implement functional interfaces.

    • Stream API provides a way to process collections of objects in a functional style.

    • Microservices architecture breaks down applications into smaller, independent services.

    • HTTP is unencrypted protocol, HTTPS is encrypted using SSL/TLS for secure communication.

    • ...

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Company Website and was interviewed in Jan 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. @Qualifier put patch fsctory sessionfactory transient load get IOC
Interview experience
2
Poor
Difficulty level
Hard
Process Duration
2-4 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Apr 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Details on past project experience

Round 3 - Technical 

(3 Questions)

  • Q1. What is difference between rest and normal controller
  • Ans. 

    Rest controllers are specifically used for RESTful web services, while normal controllers are used for traditional web applications.

    • Rest controllers are used to build RESTful web services that can accept and return JSON or XML data.

    • Normal controllers are used for traditional web applications that render HTML views.

    • Rest controllers use annotations like @RestController and @RequestMapping to define endpoints.

    • Normal contr...

  • Answered by AI
  • Q2. What is memory leak how will you identify
  • Ans. 

    Memory leak is a situation where a program uses memory inefficiently, causing memory to be allocated but not released.

    • Memory leak occurs when a program allocates memory but does not release it after it is no longer needed.

    • Identifying memory leaks can be done using tools like profilers to analyze memory usage over time.

    • Common signs of memory leaks include increasing memory usage over time, frequent garbage collection, a...

  • Answered by AI
  • Q3. AWS concepts and ec2

Skills evaluated in this interview

I applied via Approached by Company and was interviewed in Dec 2021. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Spring boot, java(oops, multithreading,exception handling,strings,etc), mcroservices

Interview Preparation Tips

Topics to prepare for Infosys Java Spring Boot Developer interview:
  • Java architecture
  • Multithreading
  • OOPS
  • Exception handling
Interview preparation tips for other job seekers - Be prepared on core concepts in depth.

What people are saying about Infosys

View All
schedule2
Verified Icon
6d
works at
Cognizant
Salary expectation
I have 5+ years of experience in springboot microservices, currently working in CTS and having 10L CTC , wanted to switch in Infosys or Accenture like companies, how much should I ask for 15L-18L ? Just worried if I ask more they can reject my application, please help me with some numbers
Got a question about Infosys?
Ask anonymously on communities.

Interview questions from similar companies

I applied via Company Website and was interviewed before Jun 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

First round was coding as well as aptitude done together went well I guess focusing on codes helps a lot.

Round 2 - Technical 

(1 Question)

  • Q1. 2nd round included tr and mr round went quite enegritic

Interview Preparation Tips

Interview preparation tips for other job seekers - Resume skills matters a lot don't fill resume the technologies you don't even aware of

Infosys Interview FAQs

How many rounds are there in Infosys Java Spring Boot Developer interview?
Infosys interview process usually has 1-2 rounds. The most common rounds in the Infosys interview process are Technical, Resume Shortlist and Coding Test.
How to prepare for Infosys Java Spring Boot Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Infosys. The most common topics and skills that interviewers at Infosys expect are Java, Spring Boot, Microservices, Java Spring Boot and SDLC.
What are the top questions asked in Infosys Java Spring Boot Developer interview?

Some of the top questions asked at the Infosys Java Spring Boot Developer interview -

  1. explain new feature in java (labda, functional interface, default) , what is st...read more
  2. What are java8 features? Why string is immutable? Difference between the chec...read more
  3. What is the process for retrieving data from a database using a REST API in Spr...read more
How long is the Infosys Java Spring Boot Developer interview process?

The duration of Infosys Java Spring Boot Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

3.4/5

based on 9 interview experiences

Difficulty level

Moderate 86%
Hard 14%

Duration

Less than 2 weeks 71%
2-4 weeks 29%
View more
Join Infosys Creating the next opportunity for people, businesses & communities

Interview Questions from Similar Companies

TCS Interview Questions
3.6
 • 11.1k Interviews
Accenture Interview Questions
3.8
 • 8.6k Interviews
Wipro Interview Questions
3.7
 • 6k Interviews
Cognizant Interview Questions
3.7
 • 5.9k Interviews
Capgemini Interview Questions
3.7
 • 5k Interviews
Tech Mahindra Interview Questions
3.5
 • 4.1k Interviews
HCLTech Interview Questions
3.5
 • 4.1k Interviews
Genpact Interview Questions
3.8
 • 3.4k Interviews
LTIMindtree Interview Questions
3.7
 • 3k Interviews
IBM Interview Questions
4.0
 • 2.5k Interviews
View all
Infosys Java Spring Boot Developer Salary
based on 78 salaries
₹2 L/yr - ₹8.5 L/yr
24% less than the average Java Spring Boot Developer Salary in India
View more details

Infosys Java Spring Boot Developer Reviews and Ratings

based on 4 reviews

3.1/5

Rating in categories

2.8

Skill development

3.8

Work-life balance

2.2

Salary

4.1

Job security

3.4

Company culture

1.9

Promotions

2.5

Work satisfaction

Explore 4 Reviews and Ratings
Java+Springboot Developer

Bangalore / Bengaluru

5-9 Yrs

Not Disclosed

Java Springboot Developer

Bangalore / Bengaluru

3-5 Yrs

Not Disclosed

Java Springboot Developer

Bangalore / Bengaluru

5-10 Yrs

Not Disclosed

Explore more jobs
Technology Analyst
55.8k salaries
unlock blur

₹3 L/yr - ₹11.6 L/yr

Senior Systems Engineer
53.7k salaries
unlock blur

₹2.5 L/yr - ₹8.3 L/yr

Technical Lead
35k salaries
unlock blur

₹7.3 L/yr - ₹20 L/yr

System Engineer
32.4k salaries
unlock blur

₹2.4 L/yr - ₹5.5 L/yr

Senior Associate Consultant
31k salaries
unlock blur

₹6.3 L/yr - ₹17 L/yr

Explore more salaries
Compare Infosys with

TCS

3.6
Compare

Wipro

3.7
Compare

Cognizant

3.7
Compare

Accenture

3.8
Compare
write
Share an Interview