i
Infosys
Work with us
Filter interviews by
Spring Security is a powerful framework for securing Java applications, providing authentication and authorization features.
Provides comprehensive security services for Java applications.
Supports authentication via various methods: form-based, basic, OAuth, etc.
Enables role-based access control to restrict access to resources.
Integrates seamlessly with Spring applications, leveraging existing configurations.
Offers...
Memory leaks occur when a program allocates memory but does not release it, leading to inefficient memory usage.
Use tools like profilers to identify memory leaks in Java applications.
Avoid creating unnecessary objects and ensure proper garbage collection.
Avoid static references to objects that can prevent them from being garbage collected.
Close resources like files, database connections, and streams after use to p...
Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering.
Comparable is implemented by the class itself to define the natural ordering of objects.
Comparator is implemented by a separate class to define custom ordering of objects.
Example: String class implements Comparable interface for natural ordering, while Collections class uses Comparator for custom sorting...
Maven defines six scopes for dependencies: compile, provided, runtime, test, system, and import, each serving different purposes.
1. Compile: Default scope, available in all classpaths. Example: <scope>compile</scope>
2. Provided: Used when the dependency is provided by the JDK or a container. Example: <scope>provided</scope>
3. Runtime: Available at runtime but not at compile time. Example: &...
Method reference is a shorthand syntax for lambda expressions, while functional interface is an interface with a single abstract method.
Method reference is used to refer to methods or constructors without invoking them, providing a more concise way to write lambda expressions.
Functional interface is an interface that has only one abstract method, which can be implemented using lambda expressions or method referenc...
Yes, static methods can be overloaded in Java.
Static methods can be overloaded in Java by having multiple static methods in the same class with the same name but different parameters.
The method signature (name + parameters) must be different for each overloaded static method.
Example: public static void method(int x) and public static void method(String s) are overloaded static methods.
pom.xml is a configuration file in a Maven project that defines project dependencies, build settings, and plugins.
Defines project dependencies and their versions
Specifies build settings such as source directory, target directory, and compiler version
Configures plugins for various tasks like compiling code, running tests, packaging the project
Helps in managing project lifecycle phases like clean, compile, test, pac...
To set up a Spring-Boot project with only OS and JDK, you need to install Maven and then create a new project using Spring Initializr.
Install Apache Maven to manage dependencies and build the project
Use Spring Initializr to generate a new Spring Boot project with required dependencies
Import the project into your IDE and start coding
Commonly used Spring Boot annotations include @RestController, @Autowired, @RequestMapping, @Service, @Component, @Repository.
@RestController - Used to define RESTful web services.
@Autowired - Used for automatic dependency injection.
@RequestMapping - Used to map web requests to specific handler methods.
@Service - Used to indicate that a class is a service component.
@Component - Used to indicate that a class is a S...
Implement pagination in UI by limiting results to 10 per page.
Implement pagination logic in UI to display 10 results per page.
Use backend query parameters like 'offset' and 'limit' to fetch specific results.
Utilize front-end frameworks like React or Angular for efficient pagination implementation.
I applied via Company Website and was interviewed in Oct 2024. There were 2 interview rounds.
Memory leaks occur when a program allocates memory but does not release it, leading to inefficient memory usage.
Use tools like profilers to identify memory leaks in Java applications.
Avoid creating unnecessary objects and ensure proper garbage collection.
Avoid static references to objects that can prevent them from being garbage collected.
Close resources like files, database connections, and streams after use to preven...
Maven defines six scopes for dependencies: compile, provided, runtime, test, system, and import, each serving different purposes.
1. Compile: Default scope, available in all classpaths. Example: <scope>compile</scope>
2. Provided: Used when the dependency is provided by the JDK or a container. Example: <scope>provided</scope>
3. Runtime: Available at runtime but not at compile time. Example: <sc...
Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering.
Comparable is implemented by the class itself to define the natural ordering of objects.
Comparator is implemented by a separate class to define custom ordering of objects.
Example: String class implements Comparable interface for natural ordering, while Collections class uses Comparator for custom sorting.
I appeared for an interview in Aug 2024.
I have over 10 years of experience in Java development, working on various projects and technologies.
10+ years of experience in Java development
Worked on various projects and technologies
Strong understanding of software development lifecycle
Experience with frameworks like Spring and Hibernate
Knowledge of design patterns and best practices
To set up a Spring-Boot project with only OS and JDK, you need to install Maven and then create a new project using Spring Initializr.
Install Apache Maven to manage dependencies and build the project
Use Spring Initializr to generate a new Spring Boot project with required dependencies
Import the project into your IDE and start coding
Commonly used Spring Boot annotations include @RestController, @Autowired, @RequestMapping, @Service, @Component, @Repository.
@RestController - Used to define RESTful web services.
@Autowired - Used for automatic dependency injection.
@RequestMapping - Used to map web requests to specific handler methods.
@Service - Used to indicate that a class is a service component.
@Component - Used to indicate that a class is a Spring...
I recently developed a REST API for a banking application to handle customer transactions.
Implemented CRUD operations for customer accounts and transactions
Used Spring Boot framework for building the API
Secured API endpoints using OAuth 2.0 authentication
Utilized Swagger for API documentation
Pagination in APIs is achieved by using query parameters like page number and page size.
Use query parameters like 'page' and 'size' to specify the page number and number of items per page.
Implement logic in the backend to fetch and return only the specified page of data.
Calculate the total number of pages based on the total number of items and page size.
Include links to navigate to the next and previous pages in the AP...
Implement pagination in UI by limiting results to 10 per page.
Implement pagination logic in UI to display 10 results per page.
Use backend query parameters like 'offset' and 'limit' to fetch specific results.
Utilize front-end frameworks like React or Angular for efficient pagination implementation.
Actuators in Spring Boot are built-in tools that help monitor and manage the application.
Actuators provide endpoints to monitor application health, metrics, info, etc.
They can be used to interact with the application at runtime.
Examples include /actuator/health, /actuator/metrics, /actuator/info, etc.
pom.xml is a configuration file in a Maven project that defines project dependencies, build settings, and plugins.
Defines project dependencies and their versions
Specifies build settings such as source directory, target directory, and compiler version
Configures plugins for various tasks like compiling code, running tests, packaging the project
Helps in managing project lifecycle phases like clean, compile, test, package,...
GET is used to request data from a specified resource, while POST is used to submit data to a specified resource.
GET requests are idempotent, meaning they can be repeated without changing the result, while POST requests are not.
GET requests can be cached, bookmarked, and shared, while POST requests cannot.
GET requests have a limit on the amount of data that can be sent, while POST requests do not have such limitations.
...
Yes, by implementing a RESTful API with different HTTP methods for each operation.
Implement a RESTful API with different endpoints for each operation: GET for retrieving data, POST for supplying data, and DELETE for deleting data.
For example, GET /data to retrieve data, POST /data to supply data, and DELETE /data/{id} to delete data by ID.
Use proper HTTP methods and status codes to handle each operation effectively.
Yes, I have experience working with cloud technologies such as AWS, Azure, and Google Cloud Platform.
Experience with AWS, Azure, and Google Cloud Platform
Deploying applications on cloud infrastructure
Working with cloud services like EC2, S3, and RDS
I have worked with technologies such as Spring Boot, Hibernate, Angular, and Docker in various projects.
Spring Boot
Hibernate
Angular
Docker
I applied via Company Website and was interviewed in Nov 2024. There were 2 interview rounds.
I applied via LinkedIn and was interviewed in Sep 2024. There were 2 interview rounds.
Tomcat and Spring Boot versions are independent of each other, but they can be compatible with each other.
Tomcat versions can range from 7.x to 10.x, with the latest stable version being 10.0.12.
Spring Boot versions are typically aligned with Spring Framework versions, with the latest stable version being 2.5.4.
It is important to ensure compatibility between the Tomcat and Spring Boot versions being used in a project.
Yes, static methods can be overloaded in Java.
Static methods can be overloaded in Java by having multiple static methods in the same class with the same name but different parameters.
The method signature (name + parameters) must be different for each overloaded static method.
Example: public static void method(int x) and public static void method(String s) are overloaded static methods.
Method reference is a shorthand syntax for lambda expressions, while functional interface is an interface with a single abstract method.
Method reference is used to refer to methods or constructors without invoking them, providing a more concise way to write lambda expressions.
Functional interface is an interface that has only one abstract method, which can be implemented using lambda expressions or method references.
Ex...
I applied via Company Website and was interviewed in Sep 2024. There was 1 interview round.
2 coding questions.
1 on linkedlist
1 on arrays and string
My experience as a Senior Java Developer has been extensive and rewarding.
Worked on developing and maintaining large-scale Java applications
Led a team of developers in implementing new features and resolving technical issues
Collaborated with cross-functional teams to ensure project success
My expectation is to be compensated fairly based on my experience, skills, and the market rate for Senior Java Developers.
Expectation is to be compensated fairly based on experience and skills
Consider market rate for Senior Java Developers
Open to negotiation based on additional benefits or perks
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Using Java Streams to process collections efficiently and concisely.
Streams allow functional-style operations on collections. Example: List<String> names = Arrays.asList("Alice", "Bob"); names.stream().filter(n -> n.startsWith("A")).forEach(System.out::println);
Streams can be used for transformations. Example: List<Integer> lengths = names.stream().map(String::length).collect(Collectors.toList());
Paralle...
I appeared for an interview in Feb 2025, where I was asked the following questions.
Spring Security is a powerful framework for securing Java applications, providing authentication and authorization features.
Provides comprehensive security services for Java applications.
Supports authentication via various methods: form-based, basic, OAuth, etc.
Enables role-based access control to restrict access to resources.
Integrates seamlessly with Spring applications, leveraging existing configurations.
Offers prot...
I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.
What people are saying about Infosys
Some of the top questions asked at the Infosys Senior Java Developer interview -
The duration of Infosys Senior Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 20 interview experiences
Difficulty level
Duration
based on 9 reviews
Rating in categories
Technology Analyst
55.8k
salaries
| ₹4.8 L/yr - ₹11.1 L/yr |
Senior Systems Engineer
53.8k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35.1k
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