i
Infosys
Work with us
Filter interviews by
To reverse records in a ps file, you can use command-line tools like awk, sed, or sort.
Use 'tac' command: 'tac filename.ps' reverses the order of lines in the file.
With 'awk': 'awk '{print}' filename.ps | tac' can also achieve the same result.
Using 'sed': 'sed -n '1!G;h;$p' filename.ps' reverses the lines.
For specific fields, consider using 'cut' in combination with 'tac'.
SQL (Structured Query Language) is a standard language for managing and manipulating relational databases.
SQL is used to perform tasks such as querying data, updating records, and managing database structures.
Common SQL commands include SELECT (to retrieve data), INSERT (to add data), UPDATE (to modify data), and DELETE (to remove data).
SQL supports various data types, including INTEGER, VARCHAR, DATE, and BOOLEAN...
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 ...
final is a keyword used to declare constants, finally is used in exception handling, and finalize is a method used for cleanup.
final is used to declare constants in Java, preventing them from being modified
finally is used in exception handling to define a block of code that will always be executed
finalize is a method in Java that is called by the garbage collector before an object is destroyed
Use a key-value pair approach with a flexible schema to accommodate varying columns.
Utilize a key-value store like MongoDB or a NoSQL database for flexibility.
Store data as key-value pairs where the key represents the column name and the value is the data.
Implement a dynamic schema design to allow for adding new columns without altering the database structure.
Consider using JSON or XML data formats to store the dy...
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 t...
Use a SQL query with ORDER BY and LIMIT to find the 2nd last student marks.
Use ORDER BY clause to sort the marks in descending order
Use LIMIT 1,1 to skip the last row and fetch the 2nd last row
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...
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.
Java avoids multiple inheritance to prevent complexity and ambiguity, particularly the diamond problem.
Multiple inheritance can lead to the 'diamond problem', where a class inherits from two classes that have a common ancestor.
For example, if class A has methods that are overridden in classes B and C, and class D inherits from both B and C, it becomes ambiguous which method D should inherit.
Java uses interfaces to...
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