i
Infosys
Filter interviews by
Extension methods allow adding functionality to existing types without modifying them.
Extension methods are defined in a static class.
They must be marked with the 'this' keyword before the first parameter.
They can be called on instances of the extended type as if they were instance methods.
Extension methods can be used to add functionality to third-party or built-in types.
Example: 'myString.Reverse()' where 'Reverse' i
The output will depend on the implementation of the method.
The method may or may not modify the value of the int parameter.
The method may or may not return a value based on the int parameter.
Without knowing the implementation of the method, it is impossible to predict the output.
To inherit a partial class, use the 'partial' keyword in both the base and derived classes.
Use the 'partial' keyword in both the base and derived classes
Ensure that the partial classes have the same name and are in the same namespace
Add the necessary code to the derived class to inherit the properties and methods from the base class
The 'using' keyword is used in C# to declare a code block that uses an object and automatically disposes of it when done.
The 'using' keyword is followed by a set of parentheses that contain the object to be used.
The object must implement the IDisposable interface.
The 'using' block ensures that the object is disposed of when the block is exited, even if an exception is thrown.
Example: using (FileStream fileStream = new ...
WebAPIs allow communication between different systems and enable access to data and functionality over the internet.
WebAPIs provide a standardized way for different systems to communicate with each other over the internet.
They allow access to data and functionality from remote servers, enabling the creation of web and mobile applications.
WebAPIs can be used to integrate different systems, such as payment gateways, soci...
Yes, DML statements can be written in functions.
Functions can contain DML statements like INSERT, UPDATE, DELETE.
Functions can also return values based on the DML statements executed.
However, functions cannot be used to execute DDL statements like CREATE or ALTER.
Triggers in SQL are special types of stored procedures that are automatically executed in response to certain events.
Triggers can be used to enforce business rules or data integrity
They can be executed before or after an INSERT, UPDATE, or DELETE statement
Triggers can also be used to audit changes to data
Examples of triggers include sending an email notification when a new record is inserted or updating a related table
To fetch a record from a table, use SELECT statement with appropriate conditions.
Use SELECT statement with appropriate columns and table name
Add conditions using WHERE clause to filter the record
Use LIMIT clause to limit the number of records returned
Example: SELECT * FROM users WHERE id = 1 LIMIT 1
Inbuilt methods that follow overriding
In Java, methods that can be overridden are marked with the 'override' keyword
The overridden method must have the same name, return type, and parameters as the original method
The 'super' keyword can be used to call the overridden method from the subclass
Overriding can be used to provide a different implementation of a method in a subclass
I applied via Company Website and was interviewed in Oct 2024. There were 2 interview rounds.
Projects are specific tasks or assignments that require a team to work together to achieve a common goal.
Projects involve a defined scope, timeline, and budget.
They require a team of individuals with different skills and expertise.
Examples include developing a new software application, implementing a new system, or conducting a research study.
I have worked on a variety of tech stacks including Java Spring, React, Node.js, and MongoDB.
Java Spring
React
Node.js
MongoDB
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 contract f...
Infosys interview questions for designations
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
Get interview-ready with Top Infosys Interview Questions
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.
A record type is a data type that represents a structured collection of fields or attributes.
Record types are used to define structured data in programming languages.
Each field in a record type has a name and a data type.
Record types are commonly used in database systems to represent rows in tables.
Examples of record types include structs in C, classes in Java, and tuples in Python.
Data fragmentation refers to the scattering of data across different locations or storage devices, making it difficult to access or manage.
Data fragmentation can occur when data is stored in multiple databases or servers.
It can also happen when data is divided into smaller pieces and stored in different locations.
Fragmented data can lead to slower access times and increased complexity in managing data.
Examples include ...
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.
A straightforward Data Structures and Algorithms question utilizing the Stream API.
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 59 interviews
3 Interview rounds
based on 399 reviews
Rating in categories
Technology Analyst
55.8k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.6k
salaries
| ₹2.8 L/yr - ₹9 L/yr |
System Engineer
39.5k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.8k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.8k
salaries
| ₹4.5 L/yr - ₹17 L/yr |
TCS
Wipro
Cognizant
Accenture