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

Compare button icon Compare button icon Compare
3.7

based on 37.3k Reviews

Filter interviews by

Infosys Senior Software Engineer 2 Interview Questions and Answers

Updated 14 Jun 2024

Infosys Senior Software Engineer 2 Interview Experiences

1 interview found

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
4-6 weeks
Result
Selected Selected

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

Round 1 - Coding Test 

Question regarding dot net, data structures, Web API

Round 2 - Aptitude Test 

Team work , How to solve a particular problem

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well on the tech stack and be positive

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I was interviewed in Nov 2024.

Round 1 - Coding Test 

Berribot test with AI by asking questions on various application level and providing a code snippet to find the longest common prefix in a string array.

Round 2 - Technical 

(15 Questions)

  • Q1. Introduction on self
  • Q2. What are the key features of Java 8 that facilitate coding with streams?
  • Ans. 

    Java 8 features like lambda expressions and functional interfaces make coding with streams easier and more efficient.

    • Lambda expressions allow for concise and readable code when working with streams.

    • Functional interfaces like Predicate, Function, and Consumer can be used with streams to perform operations on elements.

    • Stream API provides methods like map, filter, and reduce for processing collections of data in a declara...

  • Answered by AI
  • Q3. What is the purpose of Optional in Java 8, and which methods are commonly used with it?
  • Ans. 

    Optional in Java 8 is used to represent a value that may or may not be present, reducing the chances of NullPointerException.

    • Optional is used to avoid NullPointerException by explicitly stating whether a value is present or not.

    • Commonly used methods with Optional include isPresent(), get(), orElse(), orElseGet(), and map().

    • Example: Optional<String> optionalString = Optional.ofNullable("Hello");

  • Answered by AI
  • Q4. What is multiple inheritance, and how is it achieved?
  • Ans. 

    Multiple inheritance is a feature in object-oriented programming where a class can inherit attributes and methods from more than one parent class.

    • Allows a class to inherit from multiple parent classes, combining their attributes and methods

    • Can lead to the diamond problem where ambiguity arises if two parent classes have a method with the same name

    • Achieved in languages like C++ using virtual inheritance or interfaces in

  • Answered by AI
  • Q5. What are the steps to write an immutable class?
  • Ans. 

    Steps to write an immutable class

    • Make the class final so it cannot be extended

    • Make all fields private and final

    • Do not provide setter methods for the fields

    • Ensure that any mutable objects within the class are also immutable

    • If a mutable object must be returned, make a deep copy before returning it

  • Answered by AI
  • Q6. Design patterns :Singleton and factory
  • Q7. What are the different types of dependency injection?
  • Ans. 

    Types of dependency injection include constructor injection, setter injection, and interface injection.

    • Constructor injection: Dependencies are provided through a class's constructor.

    • Setter injection: Dependencies are provided through setter methods.

    • Interface injection: Dependencies are provided through an interface method.

  • Answered by AI
  • Q8. @primary vs @qualifier
  • Ans. 

    In Spring framework, @primary is used to specify the primary bean to be autowired, while @qualifier is used to specify a specific bean to be autowired.

    • Use @Primary when there are multiple beans of the same type and you want to specify the primary one to be autowired.

    • Use @Qualifier when you want to specify a specific bean to be autowired by its name.

    • Example: @Primary annotation can be used on a bean definition to mark i...

  • Answered by AI
  • Q9. What is transaction management in Spring Boot applications?
  • Ans. 

    Transaction management in Spring Boot ensures data integrity by managing database transactions.

    • Spring Boot uses @Transactional annotation to manage transactions

    • It ensures that all operations within a transaction are completed successfully or rolled back if an error occurs

    • Transactions can be managed programmatically using TransactionTemplate

    • Supports different transaction isolation levels like READ_COMMITTED, REPEATABLE_

  • Answered by AI
  • Q10. What are the different isolation levels in transactions and how do propagation types work?
  • Ans. 

    Isolation levels in transactions determine the degree to which transactions are isolated from each other. Propagation types define how transactions are propagated between different components.

    • Isolation levels include READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, and SERIALIZABLE.

    • Propagation types include REQUIRED, REQUIRES_NEW, SUPPORTS, MANDATORY, and NEVER.

    • Isolation levels control the visibility of changes made ...

  • Answered by AI
  • Q11. What are the different design patterns used in microservice architecture?
  • Ans. 

    Design patterns in microservice architecture help in solving common design problems and improving scalability, maintainability, and flexibility.

    • Service Registry pattern - used for service discovery and registration

    • Circuit Breaker pattern - used for fault tolerance and resilience

    • API Gateway pattern - used for routing and load balancing

    • Saga pattern - used for managing distributed transactions

    • Event Sourcing pattern - used...

  • Answered by AI
  • Q12. How does inter-service communication work in microservices?
  • Ans. 

    Inter-service communication in microservices involves using protocols like HTTP, gRPC, or messaging queues.

    • Microservices communicate with each other through APIs using protocols like HTTP or gRPC.

    • Message queues like RabbitMQ or Kafka can be used for asynchronous communication between services.

    • Service discovery tools like Consul or Eureka help services locate each other dynamically.

    • API gateways can be used to manage and...

  • Answered by AI
  • Q13. How does fault tolerance work in microservices?
  • Ans. 

    Fault tolerance in microservices ensures system reliability by handling failures gracefully.

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

    • Each microservice is designed to be resilient to failures and can continue to operate even if one service fails.

    • Fault tolerance is achieved through redundancy, monitoring, and graceful degradation.

    • Examples of fault tolerance mechanisms include...

  • Answered by AI
  • Q14. How does Apache Kafka work?
  • Ans. 

    Apache Kafka is a distributed streaming platform that allows for the publishing and subscribing to streams of records.

    • Apache Kafka is designed to be highly scalable and fault-tolerant.

    • It uses a distributed commit log to store messages.

    • Producers publish messages to topics, and consumers subscribe to topics to receive messages.

    • Kafka can be used for real-time stream processing, data pipelines, and event sourcing.

    • It provid...

  • Answered by AI
  • Q15. What is the difference between RestTemplate and Feign Client?
  • Ans. 

    RestTemplate is a synchronous client for making HTTP requests, while Feign Client is a declarative HTTP client that simplifies making API calls.

    • RestTemplate is part of the Spring framework and requires manual configuration for each request.

    • Feign Client is a declarative client that uses annotations to define API endpoints and parameters.

    • RestTemplate is synchronous, blocking the calling thread until the response is recei...

  • Answered by AI
Round 3 - Behavioral 

(1 Question)

  • Q1. General managerial questions focusing on projects worked as well as testing and deployment strategies used
Round 4 - Behavioral 

(1 Question)

  • Q1. General managerial questions
Round 5 - HR 

(1 Question)

  • Q1. Normal HR Questions like why leaving job ,notice period ,expectations
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Can you provide an explanation of your project?
  • Ans. 

    Developed a web-based project management tool for tracking tasks and deadlines.

    • Used React.js for front-end development

    • Implemented RESTful APIs using Node.js and Express

    • Utilized MongoDB for database management

    • Incorporated authentication and authorization features for user security

  • Answered by AI
  • Q2. What is microservice architecture?
  • Ans. 

    Microservice architecture is an architectural style that structures an application as a collection of loosely coupled services.

    • Each service is self-contained and can be developed, deployed, and scaled independently.

    • Services communicate with each other over lightweight protocols like HTTP or messaging queues.

    • Microservices allow for better scalability, flexibility, and resilience compared to monolithic architectures.

    • Exam...

  • Answered by AI
  • Q3. Collection framework and Spring annotation and explanation

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare for questions based on Backend Spring and Spring Boot Microservices.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I was interviewed in Dec 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. Dsa questions related to string array and hasmap
  • Q2. Tree graphs linked list

Interview Preparation Tips

Interview preparation tips for other job seekers - Dsa brush up well and coding questions
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Walk-in and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - One-on-one 

(2 Questions)

  • Q1. How the login components works in Angular
  • Ans. 

    Login components in Angular handle user authentication and authorization.

    • Use Angular's built-in forms module to create login form

    • Implement authentication service to handle login logic

    • Use Angular router to navigate to different pages based on login status

  • Answered by AI
  • Q2. What is abstract
  • Ans. 

    Abstract is a concept or idea that is not concrete or tangible.

    • Abstract classes in programming are classes that cannot be instantiated and are meant to be inherited by other classes.

    • Abstract data types are data types defined by their behavior and operations, rather than their implementation.

    • Abstract art is art that does not attempt to represent an accurate depiction of visual reality.

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Dec 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Coding questions on js

Round 2 - HR 

(1 Question)

  • Q1. Basic questions
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

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

Round 1 - Technical 

(2 Questions)

  • Q1. Java8,hashmap internal working,Runnable vs callable,linked list internal working,map vs flat map ,Comparable vs comparator
  • Q2. Concurrent hashmap internal working spring boot exceptions handling
Round 2 - Technical 

(2 Questions)

  • Q1. Custom key as hahsmpa
  • Q2. Java8 interview questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Ve prepared with java8 microservices spring boot
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed in Sep 2023. There were 2 interview rounds.

Round 1 - Technical 

(4 Questions)

  • Q1. The questions were on oops and java8.
  • Q2. Stream api coding questions
  • Q3. Functional interface questions
  • Q4. Trivia questions on oops concept
Round 2 - Technical 

(1 Question)

  • Q1. The interview has a few coding questions and few technical questions on java,hibernate and spring

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare java8 well
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is hooks ? explain
  • Ans. 

    Hooks are a feature in React that allow you to use state and other React features without writing a class.

    • Hooks are functions that let you use state and other React features in functional components.

    • They allow you to reuse stateful logic without changing your component hierarchy.

    • Examples of hooks include useState, useEffect, useContext, and useReducer.

  • Answered by AI
  • Q2. What is DOM ? virtual
  • Ans. 

    DOM (Document Object Model) is a programming interface for web documents that represents the structure of a document as a tree of objects.

    • DOM stands for Document Object Model.

    • It is a programming interface for web documents.

    • DOM represents the structure of a document as a tree of objects.

    • It allows programs and scripts to dynamically access and update the content, structure, and style of a document.

    • Example: Using DOM, Jav...

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Easy
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Mar 2023. There were 2 interview rounds.

Round 1 - One-on-one 

(3 Questions)

  • Q1. Interview Questions about Java, Spring boot and other technical frameworks you worked on
  • Q2. Implement Binary search tree
  • Ans. 

    Binary search tree is a data structure where each node has at most two children, with the left child being less than the parent and the right child being greater.

    • Start with a root node and insert new nodes by comparing values and traversing left or right accordingly.

    • Implement functions for insertion, deletion, search, and traversal (inorder, preorder, postorder).

    • Ensure the tree remains balanced to maintain efficient se

  • Answered by AI
  • Q3. How hash map works in java
  • Ans. 

    HashMap in Java is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.

    • HashMap uses hashing to store key-value pairs in an array of linked lists.

    • It uses the hashCode() method of keys to determine the index where the value will be stored.

    • If two keys have the same hashCode, they are stored in the same linked list at that index.

    • HashMap allows null keys and values, but only on...

  • Answered by AI
Round 2 - HR 

(1 Question)

  • Q1. Salary discussion

Interview Preparation Tips

Interview preparation tips for other job seekers - Its a service company and I attended the interview on 2015.

Skills evaluated in this interview

Infosys Interview FAQs

How many rounds are there in Infosys Senior Software Engineer 2 interview?
Infosys interview process usually has 2 rounds. The most common rounds in the Infosys interview process are Coding Test and Aptitude Test.

Tell us how to improve this page.

Join Infosys Creating the next opportunity for people, businesses & communities
Infosys Senior Software Engineer 2 Salary
based on 24 salaries
₹9.5 L/yr - ₹31.6 L/yr
18% less than the average Senior Software Engineer 2 Salary in India
View more details
Technology Analyst
56.9k salaries
unlock blur

₹3 L/yr - ₹11 L/yr

Senior Systems Engineer
49.8k salaries
unlock blur

₹2.8 L/yr - ₹8 L/yr

System Engineer
39k salaries
unlock blur

₹2.5 L/yr - ₹5.5 L/yr

Technical Lead
30.7k salaries
unlock blur

₹5.2 L/yr - ₹19.5 L/yr

Senior Associate Consultant
27.2k salaries
unlock blur

₹4.3 L/yr - ₹16.7 L/yr

Explore more salaries
Compare Infosys with

TCS

3.7
Compare

Wipro

3.7
Compare

Cognizant

3.8
Compare

Accenture

3.9
Compare
Did you find this page helpful?
Yes No
write
Share an Interview