i
Infosys
Filter interviews by
A simple example of a Get API
Use a HTTP GET request to retrieve data from a server
Include the endpoint URL in the request
Handle the response data accordingly
A final class is a class that cannot be subclassed or extended.
Final classes are declared using the 'final' keyword in Java.
Final classes cannot have any subclasses.
Final classes are often used for utility classes or classes that should not be modified or extended.
A static class is a class that cannot be instantiated and can only contain static members.
Static classes are used to group related methods and properties that do not require an instance of the class to be created.
Static classes are declared using the 'static' keyword in C#.
Static classes cannot be instantiated and cannot contain instance members.
Example: 'Math' class in C# is a static class that contains static methods
OOPS concepts are the foundation of object-oriented programming, including principles like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the compl...
Abstract class is a class that can have both abstract and non-abstract methods, while interface is a contract that defines methods that a class must implement.
Abstract class can have constructors, fields, and non-abstract methods.
Interface can only have abstract methods and constants.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract class is used to provide a common base fo...
Public, private, and protected are access modifiers in object-oriented programming languages.
Public: accessible from anywhere, both within and outside the class
Private: only accessible within the class where it is declared
Protected: accessible within the class and its subclasses
RestController is a specialized version of Controller in Spring framework for RESTful web services.
RestController is used for creating RESTful web services in Spring framework.
Controller is used for handling general web requests.
RestController automatically serializes and deserializes request and response bodies as JSON.
Controller can return any type of response, not just JSON.
Example: @RestController vs @Controller in
Legal obligations refer to the responsibilities and duties that individuals or organizations are required to fulfill under the law.
Compliance with relevant laws and regulations
Protection of confidential information
Adherence to contractual agreements
Respect for intellectual property rights
Ensuring workplace safety and health standards
Proper handling of customer data and privacy
I applied via Company Website and was interviewed in May 2024. There were 3 interview rounds.
I led a team in developing a Java project for a financial institution.
Developed a secure online banking platform using Java EE
Implemented features such as account management, transaction history, and fund transfers
Utilized Spring framework for dependency injection and Hibernate for database interaction
I applied via Company Website and was interviewed in May 2024. There were 2 interview rounds.
List and Tuple differences, ordering, indexing, and iteration
List is mutable, Tuple is immutable
Lists are ordered and indexed starting from 0, Tuples are also ordered but indexed starting from 0
Iterating through a List: for item in my_list: print(item)
Iterating through a Tuple: for item in my_tuple: print(item)
Decorator pattern allows adding new functionality to an object dynamically.
Decorator pattern involves adding new behaviors to objects by wrapping them in another object.
It allows for adding functionality without altering the original object.
Example: Adding logging functionality to a method by decorating it with a logging decorator.
Generate prime numbers from 1 to n
Iterate from 2 to n and check if each number is prime
Use a boolean array to mark non-prime numbers
Optimize by only checking up to square root of n
Infosys interview questions for popular designations
I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.
Coding questions from leetcode. 15 minutes to solve
Life cycle hooks in Angular are functions that allow you to tap into specific points in a component's life cycle.
Angular components have several life cycle hooks such as ngOnInit, ngOnDestroy, ngOnChanges, etc.
These hooks allow you to perform actions at specific points in the component's life cycle, such as initialization, change detection, and destruction.
For example, ngOnInit is called after the component has been in...
Pure pipes do not change the input data, while impure pipes can change the input data.
Pure pipes are used for data transformation without side effects.
Impure pipes can have side effects and are used for operations like logging or API calls.
Pure pipes are faster as they are only executed when a pure change to the input is detected.
Impure pipes are executed on every change detection cycle.
Example: currency pipe is pure,
Get interview-ready with Top Infosys Interview Questions
A daemon thread is a low priority thread that runs in the background and does not prevent the JVM from exiting when all user threads have finished.
Daemon threads are used for tasks that need to run continuously in the background, such as garbage collection.
They are automatically terminated by the JVM when all user threads have finished execution.
To create a daemon thread in Java, you can call the setDaemon(true) method
I applied via LinkedIn and was interviewed in Sep 2024. There were 2 interview rounds.
What are the types of version control systems
Developed a CI/CD pipeline for a web application using Jenkins and Docker
Implemented automated testing using Selenium for regression testing
Utilized Ansible for configuration management of servers
Integrated Slack notifications for build status updates
I applied via Naukri.com and was interviewed in Jun 2024. There were 2 interview rounds.
SRE focuses on reliability and stability of systems, while DevOps focuses on collaboration and automation.
SRE (Site Reliability Engineering) focuses on ensuring the reliability, availability, and stability of systems and services.
DevOps focuses on collaboration between development and operations teams, as well as automating processes for faster and more reliable software delivery.
SRE typically involves monitoring, inci...
Kubernetes is a container orchestration tool, while Docker is a containerization platform.
Kubernetes is used for automating deployment, scaling, and management of containerized applications.
Docker is a platform for developing, shipping, and running applications in containers.
Kubernetes can manage multiple containers across multiple hosts, while Docker is used to create and run containers.
Kubernetes provides features li...
What people are saying about Infosys
Interview experience
based on 37.9k reviews
Rating in categories
Technology Analyst
56k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.1k
salaries
| ₹2.8 L/yr - ₹6.4 L/yr |
System Engineer
39.2k
salaries
| ₹2.5 L/yr - ₹6 L/yr |
Technical Lead
30.6k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.5k
salaries
| ₹6.2 L/yr - ₹16.8 L/yr |
TCS
Wipro
Cognizant
Accenture