i
Infosys
Work with us
Filter interviews by
Java is an object-oriented programming language. Method is a block of code that performs a specific task. OOPs concepts are principles of object-oriented programming.
Java is a high-level programming language that is platform-independent.
Method is a block of code that performs a specific task and can be called multiple times.
OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance...
Java is a programming language. Method is a block of code that performs a specific task. OOPs is a programming paradigm.
Java is an object-oriented programming language used to develop applications and software.
A method is a block of code that performs a specific task and can be called by other parts of the program.
OOPs is a programming paradigm that focuses on objects and their interactions to solve problems.
OOPs ...
Java is an object-oriented programming language. Inheritance is a mechanism to create new classes based on existing ones. OOPs is a programming paradigm. Method is a block of code that performs a specific task.
Java is a high-level, class-based, and object-oriented programming language.
Inheritance is a mechanism in which one class acquires the properties and behaviors of another class.
OOPs is a programming paradigm...
Java is an object-oriented programming language. OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction.
Java is a high-level programming language that is platform-independent.
OOPs concepts are the foundation of Java programming.
Inheritance is a mechanism in which one class acquires the properties and behaviors of another class.
A method is a collection of statements that perform a specific ...
Answering questions related to Actuator, Dependency Injection, changing embedded server in Spring Boot, and permutation of string.
Actuator is a Spring Boot feature that provides endpoints for monitoring and managing the application.
Dependency Injection is a design pattern that allows objects to be created with their dependencies injected from outside.
To change the embedded server in Spring Boot, you can exclude th...
Java 8 introduced significant features like lambdas, streams, and the new date/time API, enhancing productivity and code readability.
Lambda Expressions: Allow you to write concise and expressive code by enabling you to treat functionality as a method argument. Example: (a, b) -> a + b.
Streams API: Provides a powerful way to process sequences of elements, enabling functional-style operations on collections. Exam...
I appeared for an interview in May 2025, where I was asked the following questions.
A profiler is a tool that analyzes program performance, helping developers identify bottlenecks and optimize code efficiency.
Profiles CPU usage to identify slow methods (e.g., identifying a method that takes 80% of execution time).
Tracks memory usage to find memory leaks (e.g., detecting objects that are not being garbage collected).
Analyzes thread activity to spot concurrency issues (e.g., identifying deadlocks or thr...
Use Java Stream API to reverse a string by converting it to a character array and collecting it in reverse order.
Convert the string to a character array: `char[] chars = str.toCharArray();`
Use `IntStream.range` to create a stream of indices in reverse order: `IntStream.range(0, chars.length).map(i -> chars[chars.length - 1 - i])`.
Collect the characters back into a string: `String reversed = new String(result.toArray...
I appeared for an interview in Aug 2024.
Spring Boot profiles allow you to define different configurations for different environments.
Profiles are defined in application.properties or application.yml files.
Use @Profile annotation to specify beans for specific profiles.
Activate a profile using the command line: --spring.profiles.active=dev
Example: application-dev.properties for development settings.
Profiles can help manage different database configurations for...
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 appeared for an interview in Mar 2025, where I was asked the following questions.
Java 8 introduced significant features like lambdas, streams, and the new date/time API, enhancing productivity and code readability.
Lambda Expressions: Allow you to write concise and expressive code by enabling you to treat functionality as a method argument. Example: (a, b) -> a + b.
Streams API: Provides a powerful way to process sequences of elements, enabling functional-style operations on collections. Example: ...
I applied via Referral and was interviewed in Apr 2024. There were 3 interview rounds.
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<Lis...
In my previous company, I implemented structured logging and centralized log management for better monitoring and debugging.
Utilized SLF4J with Logback for logging, allowing for flexible configuration and log formatting.
Implemented log levels (INFO, DEBUG, ERROR) to control the verbosity of logs based on the environment.
Set up centralized logging using ELK stack (Elasticsearch, Logstash, Kibana) for real-time log analy...
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.
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.
What people are saying about Infosys
Some of the top questions asked at the Infosys Java Developer interview for experienced candidates -
The duration of Infosys Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 28 interview experiences
Difficulty level
Duration
based on 135 reviews
Rating in categories
Technology Analyst
55.8k
salaries
| ₹4.8 L/yr - ₹11.2 L/yr |
Senior Systems Engineer
53.7k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35k
salaries
| ₹9.4 L/yr - ₹16.4 L/yr |
System Engineer
32.5k
salaries
| ₹2.4 L/yr - ₹5.3 L/yr |
Senior Associate Consultant
31.1k
salaries
| ₹8.1 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture