i
Infosys
Work with us
Filter interviews by
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance in object-oriented programming languages like Java allows for polymorphism.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and methods, while interface cannot have any implementation.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract classes are used to define a common behavior for subclasses, while interfaces are used to define a contr...
Middleware in .NET Core is software components that are assembled into the pipeline to handle requests and responses.
Middleware components are executed in the order they are added to the pipeline.
They can perform tasks such as authentication, logging, error handling, etc.
Examples of middleware in .NET Core include UseAuthentication, UseMvc, UseStaticFiles, etc.
Query to find 2nd highest salary in a table
Use a subquery to select distinct salaries
Order the salaries in descending order
Use LIMIT to get the second highest salary
final, finally, and finalize are related to Java programming language.
final is a keyword used to restrict the user from changing the value of a variable.
finally is a block of code that is always executed, whether an exception is thrown or not.
finalize is a method used for cleanup operations before an object is garbage collected.
Annotation used to mark a class as a Spring Boot application.
Used to indicate the main class of a Spring Boot application
Enables auto-configuration and component scanning
Can be used with additional annotations like @SpringBootApplication
JVM is the Java Virtual Machine that executes Java bytecode. JRE is the Java Runtime Environment that includes JVM and libraries. JDK is the Java Development Kit that includes JRE and development tools.
JVM is responsible for running Java programs by interpreting bytecode.
JRE includes JVM along with libraries and other components needed to run Java applications.
JDK is a full-featured development kit that includes J...
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods in a class. Example: A 'Car' class with properties like 'speed' and methods like 'accelerate()'.
Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.
Polymorph...
I have 5 years of experience working with Selenium using Java.
5 years of hands-on experience with Selenium and Java
Proficient in writing automated test scripts using Selenium WebDriver and Java
Experience in test automation frameworks like TestNG and JUnit
Familiar with handling dynamic web elements, synchronization, and handling pop-ups
Knowledge of integrating Selenium tests with CI/CD pipelines
Object-oriented programming paradigm focusing on objects and classes for code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details...
I appeared for an interview in Feb 2025.
An anagram is a word formed by rearranging the letters of another, while non-repeating characters are unique in a string.
Anagram Check: To determine if two strings are anagrams, sort both strings and compare them. Example: 'listen' and 'silent'.
Character Count: Use a hash map to count occurrences of each character in a string to find the first non-repeating character. Example: 'swiss' returns 'w'.
Case Sensitivity: Cons...
Out is used for returning multiple values from a method, while ref is used for passing a variable by reference.
Out parameters must be assigned a value inside the method before it returns.
Ref parameters must be initialized before passing them to a method.
Out parameters are used when a method needs to return multiple values.
Ref parameters are used when a method needs to modify the value of the parameter.
Example: int.TryP...
Create a global exception handler to manage all unhandled exceptions in the application.
Implement a global exception handler class that extends ExceptionHandler.
Override the uncaughtException method to handle all unhandled exceptions.
Log the exception details and notify the user about the error.
Consider implementing different strategies for handling different types of exceptions.
Test the global exception handler thorou...
I applied via Company Website and was interviewed in Oct 2024. There were 2 interview rounds.
I have worked on a variety of tech stacks including Java Spring, React, Node.js, and MongoDB.
Java Spring
React
Node.js
MongoDB
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
Select single retrieves exactly one row, while select single up to 1 row retrieves at most one row.
Select single is used when exactly one row is expected to be retrieved.
Select single up to 1 row is used when at most one row is expected to be retrieved.
Select single throws an error if more than one row is found, while select single up to 1 row does not.
The ideal team size varies, but typically ranges from 5 to 9 members for optimal collaboration and productivity.
Smaller teams (5-7 members) often communicate more effectively, like a startup environment.
Larger teams (8-12 members) can bring diverse skills but may face coordination challenges.
Agile methodologies suggest 7 +/- 2 as the ideal team size for Scrum teams.
Example: Google often uses small teams to foster innov...
What people are saying about Infosys
Some of the top questions asked at the Infosys Senior Software Engineer interview -
The duration of Infosys Senior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 65 interview experiences
Difficulty level
Duration
based on 424 reviews
Rating in categories
Technology Analyst
54.9k
salaries
| ₹4.8 L/yr - ₹10 L/yr |
Senior Systems Engineer
54.3k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35.3k
salaries
| ₹9.5 L/yr - ₹16.5 L/yr |
System Engineer
32.6k
salaries
| ₹2.4 L/yr - ₹5.5 L/yr |
Senior Associate Consultant
32.2k
salaries
| ₹8.2 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture