i
Infosys
Filter interviews by
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 Job Portal and was interviewed in Aug 2024. There were 2 interview rounds.
Annotations in Spring Boot are used to provide metadata about the code. @SpringBootApplication is a meta-annotation that combines @Configuration, @EnableAutoConfiguration, and @ComponentScan.
Annotations in Spring Boot are used to simplify configuration and reduce boilerplate code.
@SpringBootApplication is a meta-annotation that enables the auto-configuration feature in Spring Boot.
It combines @Configuration, @EnableAut...
I applied via Referral and was interviewed in Apr 2024. There were 3 interview rounds.
Using lambda expressions in Java 8 to print a message
Use the lambda syntax (parameters) -> { body } to define the behavior
Example: () -> System.out.println("Hello, World!")
Infosys interview questions for designations
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
Functional Interface is an interface with only one abstract method. Flat Map is used to flatten nested collections. Method Reference is a shorthand notation for lambda expressions. Stream API is used to process collections of objects.
Functional Interface is an interface with a single abstract method, such as Runnable or Comparator.
Flat Map is a method in Java that is used to flatten nested collections, like List> ...
FlatMap is a method in Java that transforms each element of a stream into a new stream and then concatenates all the streams into a single stream.
FlatMap is used to flatten nested collections or maps into a single collection.
It is commonly used in Java streams to process and transform data efficiently.
Example: List> nestedList = Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3, 4)); nestedList.stream().flatMap(L
Stream API is a feature in Java that allows processing collections of objects in a functional style.
Stream API provides a way to perform operations on collections like filter, map, reduce, etc.
It supports functional programming paradigms like lambda expressions and method references.
Example: List
A functional interface is an interface that contains only one abstract method and can be used as a lambda expression.
Functional interfaces can have multiple default or static methods, but only one abstract method.
Examples of functional interfaces in Java include Runnable, Callable, and ActionListener.
Functional interfaces are often used with lambda expressions to provide a concise way of implementing single abstract me
Get interview-ready with Top Infosys Interview Questions
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
To write a custom exception in Java, create a new class that extends Exception or a subclass of Exception.
Create a new class that extends Exception or a subclass of Exception.
Add a constructor to the custom exception class to pass a message to the superclass constructor.
Throw the custom exception using the 'throw' keyword in your code.
Handle the custom exception using try-catch blocks or propagate it up the call stack.
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to find the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
To retrieve a value, the key is hashed again to find th...
I applied via Job Portal and was interviewed in Aug 2024. There was 1 interview round.
Coding test time duration was 45 mins. Question was related to string array checking the good arrray on condition of no occurrence of characters.
In case of order failure with payment deducted, refund the payment and investigate the issue.
Initiate refund process for the deducted payment
Investigate the reason for the order failure
Communicate with the customer about the issue and resolution
Ensure the payment gateway is functioning correctly to prevent future occurrences
Constructors are special methods used to initialize objects in Java.
Constructors have the same name as the class and do not have a return type.
Types of constructors include default constructor, parameterized constructor, and copy constructor.
Default constructor is provided by Java if no constructor is defined.
Parameterized constructor takes parameters to initialize an object with specific values.
Copy constructor create...
What people are saying about Infosys
Interview experience
based on 103 reviews
Rating in categories
Technology Analyst
56k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
49.3k
salaries
| ₹2.8 L/yr - ₹9.2 L/yr |
System Engineer
38.8k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.6k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.1k
salaries
| ₹6.2 L/yr - ₹16.8 L/yr |
TCS
Wipro
Cognizant
Accenture