i
Infosys
Filter interviews by
I applied via Approached by Company and was interviewed in Aug 2024. There were 2 interview rounds.
Find 2nd max element in an array of strings.
Sort the array in descending order
Return the element at index 1
Sort strings based on city names.
Use Arrays.sort() method with a custom Comparator to sort strings based on city names.
Create a Comparator that compares the city names of two strings.
Example: String[] cities = {"New York", "London", "Paris"};
Example: Arrays.sort(cities, (a, b) -> a.compareTo(b));
I addressed team conflicts by promoting open communication, active listening, and facilitating constructive discussions.
Encouraged team members to express their concerns and viewpoints openly
Acted as a mediator to resolve conflicts and find common ground
Implemented team-building activities to improve collaboration and trust
Provided constructive feedback and guidance to help team members work through conflicts
Improving microservice security involves implementing authentication, authorization, encryption, and monitoring.
Implement strong authentication mechanisms such as OAuth or JWT
Use role-based access control for authorization
Encrypt sensitive data in transit and at rest
Implement monitoring and logging to detect and respond to security incidents
What people are saying about Infosys
I was interviewed in Dec 2024.
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
Using static in main function allows it to be called without creating an instance of the class.
Static in main function allows it to be called directly without creating an object of the class.
Static methods can be called using the class name itself, without creating an object.
Example: public static void main(String[] args) { }
posted on 25 Mar 2024
I applied via Naukri.com and was interviewed before Mar 2023. There were 3 interview rounds.
Data Structures, logical questions
I applied via Recruitment Consultant and was interviewed in Oct 2021. There were 4 interview rounds.
Controller Advice is a mechanism in Spring MVC to handle exceptions globally.
It is used to handle exceptions across multiple controllers.
It can be used to add common data to the model.
It can be used to customize the response status code and message.
It can be used to redirect to a custom error page.
2 way SSL is needed for mutual authentication between client and server.
2 way SSL ensures that both client and server are authenticated
It provides an extra layer of security by verifying the identity of both parties
It is commonly used in financial transactions, healthcare, and government applications
Decorator pattern adds behavior to an object dynamically without affecting its existing behavior.
It is a structural pattern
It involves a component interface, concrete component, decorator interface, and concrete decorator
Decorators wrap around components to add new behavior
It allows for flexible and dynamic behavior modification
Example: Java I/O streams use decorator pattern
Grouping by in streams in Java
Use the 'groupingBy' method from the 'Collectors' class
Pass a lambda expression to specify the grouping criteria
The result is a Map with the grouping criteria as keys and the grouped elements as values
I was interviewed in Jan 2025.
A sequence was provided: 4181, 2684, 1597, 987, 610.
first 2 are given and write code for other value calculation using java 8
The second question required writing a reverse of a palindrome using both Java 8 streams. I was able to successfully write both and clear the first round.
Java 17 introduces sealed classes to restrict inheritance and improve code maintainability.
Sealed classes are declared using the 'sealed' keyword followed by the permitted subclasses.
Subclasses of a sealed class must be either final or sealed themselves.
Errors may occur when trying to extend a sealed class with a non-permitted subclass.
Implementation of 'notify me if item is back in stock' feature in an ecommerce application
Create a database table to store user notifications for out-of-stock items
Implement a service to check item availability and send notifications to subscribed users
Provide a user interface for users to subscribe to notifications for specific items
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Intermediate operations transform the elements of a stream, while terminal operations produce a result or side-effect.
Intermediate operations include map, filter, sorted, distinct, etc.
Terminal operations include forEach, collect, reduce, count, etc.
Intermediate operations are lazy and do not execute until a terminal operation is called.
Terminal operations trigger the processing of the stream and produce a result.
Ways to create Thread in Java
Extending the Thread class
Implementing the Runnable interface
Using Executor framework
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There were 2 interview rounds.
The first round was an interview conducted with a GENAI virtual bot.
Spring Boot uses autoconfiguration to automatically configure the Spring application based on dependencies and properties.
Spring Boot autoconfiguration is achieved through @EnableAutoConfiguration annotation
Autoconfiguration classes are located in the org.springframework.boot.autoconfigure package
Autoconfiguration classes are conditionally applied based on the presence of specific classes or properties
based on 2 interviews
Interview experience
based on 2 reviews
Rating in categories
Technology Analyst
55.8k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.2k
salaries
| ₹2.8 L/yr - ₹8 L/yr |
System Engineer
39.3k
salaries
| ₹2.5 L/yr - ₹5.3 L/yr |
Technical Lead
30.7k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.5k
salaries
| ₹4.5 L/yr - ₹16.6 L/yr |
TCS
Wipro
Cognizant
Accenture