Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Infosys Associate Java Developer Interview Questions and Answers

Updated 15 May 2024

Infosys Associate Java Developer Interview Experiences

2 interviews found

Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Apr 2024.

Round 1 - Coding Test 

They were getting rude and demoralizing after every question even if i answered it. They didn't even bother asking me about myself. 1st question was what did you do in your previous job. I was giving the answer in detail as i was a senior at my previous role as an analyst. They kept interrupting me after every point to repeat it but differently. And I did it with a smile. But something was triggering them as they were sounding frustrated, probably because the interview was on a Saturday evening. Then i was asked technical questions which i answered all of them except 1, for which i gave a theoretical answer and explained that i do not have practical knowledge in the same and would love to work on myself for the same. However they started angrily saying Didn't the HR tell you that we were looking for a expert for this associate role?!
So again smilingly i asked will there be training? They said yes. And before i could ask anything else they said I'm done here bye. And cut the call. The worst interview of my life. And mind you guys I've given 3 interviews in my past before this and cracked all of them bagging good jobs in product based companies. This was a really unprofessional interview done by Infosys.

Round 2 - No response 

(1 Question)

  • Q1. Then still ghosted by them.

Interview Questionnaire 

1 Question

  • Q1. About basic core java

Interview Preparation Tips

Interview preparation tips for other job seekers - Every thing nice and interviewr is always friendly and nice to me

Associate Java Developer Interview Questions Asked at Other Companies

Q1. Explain How was your syllobus was done in Lockdown at College?
asked in Endava
Q2. What is No-Sql? In what cases does No-Sql will be used?
asked in Endava
Q3. What are the OOPS concept and explain them with an example.
asked in Endava
Q4. What is meant by polymorphism? What are the different types of po ... read more
asked in Endava
Q5. What is DBMS ? and Differentiate blw R-DBMS and DBMS.

Interview questions from similar companies

Round 1 - Technical 

(1 Question)

  • Q1. Which is better Java or python
  • Ans. 

    Both Java and Python have their own strengths and weaknesses, and the choice depends on the specific requirements of the project.

    • Java is a statically typed language, while Python is dynamically typed.

    • Java is known for its performance and scalability, making it suitable for large-scale enterprise applications.

    • Python is known for its simplicity and readability, making it a popular choice for beginners and rapid developme...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Java developer versatile interpretation language sis the fourth most popular

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Jan 2025.

Round 1 - Coding Test 

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.

Round 2 - Technical 

(6 Questions)

  • Q1. Interviewer was himself not knowing anything as it was walkin drive he was sitting infront of me and checking questions on phone Introduction that he inturrepted in between when I was introducing myself
  • Q2. What are the features of Java 17, specifically related to sealed classes, including their syntax and necessity, along with the potential errors encountered when invoking a sealed class?
  • Ans. 

    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.

  • Answered by AI
  • Q3. Java 8 feathers stream api, functional interface, Intermittent operator ,Ternary operator, Prediction,Bi predicate. Answered all successfully
  • Q4. Draw low level design of implementation of notify me if item is back in stock in a ecommerce application
  • Ans. 

    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

  • Answered by AI
  • Q5. All design patterns which I know. Asked me to implement adapter pattern on paper
  • Q6. Then given a problem that concurrent way perform operation on excell to decrease the response time

Interview Preparation Tips

Interview preparation tips for other job seekers - I always suggest staying away from these companies commonly referred to as WITCH (Wipro, Infosys, TCS, Cognizant, HCL). You will rarely encounter good interviewers there unless there is an extreme necessity. Interview was judging me on the basis of syntex by seeing in his phone. How can everyone write each and everything on copy. For the low level design first time in my 6 years carrier someone asked to design without using kafka or any other library like spring boot to achieve that add in reminder list problem 😂. At first it was my bad after holding a offer of almost 27 lakh I somehow agreed for giving interview. Second thing I also know that after Even clearing they cannot afford 30LPA which I asked. I just went there because from last 6.5 year I have never attended any walking or face to face interview so was curious for it. Currently also working with somewhat premium product development company only. My experience was very bad. May be it can get vary person to person.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
-

I was interviewed in Jan 2025.

Round 1 - Technical 

(8 Questions)

  • Q1. Difference between HashMap and TreeMap? Internal working of HashMap?
  • Q2. Functional Interface?
  • Q3. Singleton Class?
  • Q4. What is Eureka Server?
  • Q5. How to handle Exception in SpringBoot?
  • Q6. Find the average sal of employee in each department using java 8 Stream?
  • Q7. What is circuit Breaker?
  • Q8. What is docker and kubernates?
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I was interviewed in Dec 2024.

Round 1 - Technical 

(22 Questions)

  • Q1. API Gateway implementation
  • Ans. 

    API Gateway implementation is a centralized service that routes, manages, and secures API calls.

    • API Gateway acts as a single entry point for all API calls

    • It can handle authentication, rate limiting, caching, and request/response transformations

    • Examples include AWS API Gateway, Apigee, Kong

  • Answered by AI
  • Q2. Circuit breaker implementation
  • Ans. 

    Circuit breaker is a design pattern used to prevent system overload by temporarily stopping requests to a failing service.

    • Circuit breaker monitors requests to a service and opens when the service fails repeatedly.

    • It helps prevent cascading failures and allows the system to gracefully degrade.

    • Once the circuit breaker is open, it can periodically check if the service has recovered before allowing requests again.

  • Answered by AI
  • Q3. What is deadlock? How to avoid it?
  • Ans. 

    Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.

    • Avoid circular wait by ensuring processes request resources in the same order.

    • Prevent hold and wait by requiring processes to request all needed resources at once.

    • Implement a timeout mechanism to break potential deadlocks.

    • Use resource allocation graphs to detect and prevent deadlocks.

    • ...

  • Answered by AI
  • Q4. Explain equals() method
  • Ans. 

    The equals() method is used to compare the contents of two objects for equality.

    • The equals() method is a method of the Object class in Java.

    • It is used to compare the contents of two objects for equality.

    • The default implementation of equals() in the Object class compares memory addresses, so it is often overridden in custom classes to compare content.

    • Example: String class overrides equals() method to compare the content

  • Answered by AI
  • Q5. How mongodb was integrated in your application?
  • Ans. 

    MongoDB was integrated in the application by using the official Java driver and configuring connection settings.

    • Used the official MongoDB Java driver to interact with the database

    • Configured connection settings such as host, port, database name, and authentication credentials

    • Implemented CRUD operations using MongoDB Java driver methods

    • Utilized MongoDB aggregation framework for complex queries

  • Answered by AI
  • Q6. What is hibernate?
  • Ans. 

    Hibernate is an open-source Java framework that simplifies the development of database interactions in Java applications.

    • Hibernate is an Object-Relational Mapping (ORM) tool that maps Java objects to database tables.

    • It provides a way to perform database operations using Java objects instead of writing SQL queries.

    • Hibernate handles the mapping of Java classes to database tables and vice versa, as well as the generation ...

  • Answered by AI
  • Q7. Runnable vs Callable interface
  • Ans. 

    Runnable is a functional interface with a single run() method, while Callable is a functional interface with a single call() method.

    • Runnable is used for tasks that do not return a result, while Callable is used for tasks that return a result.

    • Callable can throw checked exceptions, while Runnable cannot.

    • Callable returns a Future object, which can be used to retrieve the result of the computation.

    • Example: Runnable - execu...

  • Answered by AI
  • Q8. Which type of data is returned by Callable interface?
  • Ans. 

    The Callable interface in Java returns a Future object.

    • Callable interface returns a Future object which represents the result of a computation that may not be available yet.

    • The Future object can be used to retrieve the result of the computation, check if it is done, or cancel the computation.

    • Example: Callable<Integer> task = () -> { return 42; }

  • Answered by AI
  • Q9. HashMap internal working
  • Q10. Concurrent HashMap internal working
  • Q11. How to monitor health of your application?
  • Ans. 

    Monitor application health using metrics, logs, alerts, and performance monitoring tools.

    • Use monitoring tools like Prometheus, Grafana, or New Relic to track key metrics such as CPU usage, memory usage, response times, and error rates.

    • Implement logging to record important events and errors in your application. Use tools like ELK stack (Elasticsearch, Logstash, Kibana) for log analysis.

    • Set up alerts to notify you of any...

  • Answered by AI
  • Q12. How to call an API in a Microservice architecture?
  • Ans. 

    To call an API in a Microservice architecture, use HTTP requests or messaging protocols like gRPC.

    • Use HTTP requests to communicate between microservices

    • Implement RESTful APIs for easy integration

    • Leverage messaging protocols like gRPC for efficient communication

    • Consider using service discovery mechanisms for dynamic API calls

  • Answered by AI
  • Q13. Explain Profiles
  • Ans. 

    Profiles in Java are configurations that define the capabilities of a Java platform.

    • Profiles allow developers to target specific types of devices or applications.

    • They help in reducing the size of the Java runtime environment by including only the necessary APIs.

    • Examples include Java SE Embedded Profile for embedded devices and Java SE Compact Profile for resource-constrained environments.

  • Answered by AI
  • Q14. What is OpenFeign, and how is it used in microservices architecture?
  • Ans. 

    OpenFeign is a declarative web service client used to simplify the process of making HTTP requests in microservices architecture.

    • OpenFeign allows developers to define RESTful web services as interfaces and automatically generate the necessary implementation code.

    • It integrates seamlessly with Spring Cloud and other microservices frameworks to facilitate communication between services.

    • OpenFeign supports features like loa...

  • Answered by AI
  • Q15. What is the implementation process for service registry and discovery?
  • Ans. 

    Service registry and discovery involves registering services and allowing clients to discover and connect to them.

    • Implement a service registry where services can register themselves with metadata

    • Use a service discovery mechanism for clients to find and connect to services

    • Implement health checks to ensure services are available and healthy

    • Use a load balancer to distribute traffic among multiple instances of a service

  • Answered by AI
  • Q16. What are Spring boot actuators?
  • Ans. 

    Spring Boot Actuators are built-in tools that provide insight into the running application.

    • Actuators expose various endpoints to monitor and manage the application.

    • They can be used to check health, metrics, environment details, and more.

    • Examples include /actuator/health, /actuator/metrics, and /actuator/env.

  • Answered by AI
  • Q17. Synchronous vs Asynchronous communication
  • Ans. 

    Synchronous communication is blocking, while asynchronous communication is non-blocking.

    • Synchronous communication waits for a response before continuing, while asynchronous communication does not wait.

    • Examples of synchronous communication include traditional function calls, while examples of asynchronous communication include callbacks and promises.

    • Synchronous communication can lead to performance issues if there are d...

  • Answered by AI
  • Q18. Explain Synchronized keyword
  • Ans. 

    Synchronized keyword is used in Java to control access to shared resources by multiple threads.

    • Synchronized keyword can be applied to methods or code blocks to ensure only one thread can access the synchronized code at a time.

    • It prevents race conditions and ensures thread safety by creating a lock on the object or class.

    • Example: synchronized void myMethod() { // synchronized code block }

  • Answered by AI
  • Q19. What are the consequences of excessively using synchronized blocks and methods in Java?
  • Ans. 

    Excessive use of synchronized blocks and methods in Java can lead to performance issues and potential deadlocks.

    • Decreased performance due to increased contention for locks

    • Potential deadlocks if multiple threads are waiting for each other to release locks

    • Increased complexity and difficulty in debugging and maintaining code

    • Use synchronized sparingly and consider alternatives like ConcurrentHashMap or Lock interface

  • Answered by AI
  • Q20. How can you determine the number of threads needed for your application?
  • Ans. 

    The number of threads needed for an application can be determined based on factors like the type of tasks, hardware resources, and performance requirements.

    • Consider the type of tasks your application needs to perform - CPU-bound tasks may benefit from more threads, while I/O-bound tasks may not.

    • Take into account the hardware resources available - more threads may be beneficial on a multi-core processor compared to a si...

  • Answered by AI
  • Q21. Explain Executor framework
  • Ans. 

    Executor framework is a framework in Java that provides a way to manage and execute tasks asynchronously.

    • Allows for managing thread execution in a more efficient way

    • Provides a way to decouple task submission from task execution

    • Supports various types of executors like ThreadPoolExecutor and ScheduledExecutorService

    • Helps in handling tasks concurrently and asynchronously

  • Answered by AI
  • Q22. Explain BlockingQueue
  • Ans. 

    BlockingQueue is an interface in Java that represents a queue which supports operations that wait for the queue to become non-empty when retrieving an element and wait for space to become available in the queue when adding an element.

    • BlockingQueue is part of the java.util.concurrent package.

    • It is used for implementing producer-consumer scenarios where multiple threads are involved.

    • Methods like put() and take() are used...

  • Answered by AI
Round 2 - HR 

(2 Questions)

  • Q1. Why did you leave your previous company?
  • Ans. 

    Seeking new challenges and opportunities for growth.

    • Desire for career advancement

    • Looking for new challenges

    • Seeking better work-life balance

    • Company restructuring or downsizing

    • Relocation to a new area

  • Answered by AI
  • Q2. Other basic questions asked regarding the relevant skills and technologies I have worked with.
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I was interviewed in Jan 2025.

Round 1 - Aptitude Test 

It is all concepts for communication skills

Round 2 - Coding Test 

This is some role of the coding ,for example: java,html,css,javascript like that coding

Round 3 - Technical 

(1 Question)

  • Q1. Subject based questions they are asking
Round 4 - HR 

(1 Question)

  • Q1. Overall details asking them
Round 5 - Group Discussion 

This is observed the skills

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - Technical 

(4 Questions)

  • Q1. Given an array {1, 2, 1, 4, 5, 4, 8, 7}, how can you use Streams to remove duplicates while retaining only the even numbers?
  • Ans. 

    Use Streams to remove duplicates and retain only even numbers from an array.

    • Convert the array to a stream using Arrays.stream()

    • Use distinct() to remove duplicates

    • Filter out odd numbers using filter()

    • Collect the result using collect(Collectors.toList())

  • Answered by AI
  • Q2. What is the use of Static and final when you will use Static methods
  • Ans. 

    Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.

    • Static methods belong to the class itself, not to any specific instance

    • Final keyword ensures that the method cannot be overridden in subclasses

    • Static methods are commonly used for utility methods that do not require access to instance variables

    • Example: Math class in Java has static methods like Ma

  • Answered by AI
  • Q3. What is the difference between @restController and @controller Annotation
  • Ans. 

    The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.

    • RestController is a specialized version of Controller used for RESTful web services

    • RestController eliminates the need for @ResponseBody annotation

    • Controller is used for traditional MVC controller functionality

    • RestController returns data directly without needing to go through a view resolve...

  • Answered by AI
  • Q4. What is microservices why we use it
  • Ans. 

    Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.

    • Microservices allow for easier scalability and maintenance of complex applications.

    • Each service in a microservices architecture can be developed, deployed, and scaled independently.

    • Microservices promote flexibility and agility in software development.

    • Examples of companies us...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Senior Java Developer interview:
  • Java SpringBoot
Interview preparation tips for other job seekers - Need to have strong knowledge on basics Java Spring boot and Microservices
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Project based questions
  • Q2. Scenario based question (multithreading and caching related scenarios were asked to me)
  • Q3. One coding challenge

Interview Preparation Tips

Interview preparation tips for other job seekers - Questions vary from team to team.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. What are intermediate and terminal operations
  • Ans. 

    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.

  • Answered by AI
  • Q2. Predefined functional interface
  • Q3. Ways to create Thread
  • Ans. 

    Ways to create Thread in Java

    • Extending the Thread class

    • Implementing the Runnable interface

    • Using Executor framework

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - It was moderate level of interview

Infosys Interview FAQs

How many rounds are there in Infosys Associate Java Developer interview?
Infosys interview process usually has 2 rounds. The most common rounds in the Infosys interview process are Coding Test.
What are the top questions asked in Infosys Associate Java Developer interview?

Some of the top questions asked at the Infosys Associate Java Developer interview -

  1. Then still ghosted by th...read more
  2. About basic core j...read more

Tell us how to improve this page.

Infosys Associate Java Developer Interview Process

based on 1 interview

Interview experience

2
  
Poor
View more
Join Infosys Creating the next opportunity for people, businesses & communities

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.4k Interviews
Accenture Interview Questions
3.8
 • 8.2k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Cognizant Interview Questions
3.8
 • 5.6k Interviews
Capgemini Interview Questions
3.7
 • 4.8k Interviews
Tech Mahindra Interview Questions
3.5
 • 3.8k Interviews
HCLTech Interview Questions
3.5
 • 3.8k Interviews
Genpact Interview Questions
3.8
 • 3.1k Interviews
LTIMindtree Interview Questions
3.8
 • 3k Interviews
IBM Interview Questions
4.0
 • 2.4k Interviews
View all
Infosys Associate Java Developer Salary
based on 11 salaries
₹2.8 L/yr - ₹11 L/yr
27% less than the average Associate Java Developer Salary in India
View more details

Infosys Associate Java Developer Reviews and Ratings

based on 1 review

3.0/5

Rating in categories

5.0

Skill development

4.0

Work-life balance

3.0

Salary

5.0

Job security

4.0

Company culture

4.0

Promotions

4.0

Work satisfaction

Explore 1 Review and Rating
Technology Analyst
56k salaries
unlock blur

₹3 L/yr - ₹11 L/yr

Senior Systems Engineer
50.2k salaries
unlock blur

₹2.8 L/yr - ₹8 L/yr

System Engineer
39.4k salaries
unlock blur

₹2.5 L/yr - ₹5.5 L/yr

Technical Lead
30.7k salaries
unlock blur

₹5.2 L/yr - ₹19.5 L/yr

Senior Associate Consultant
27.5k salaries
unlock blur

₹6.2 L/yr - ₹17.1 L/yr

Explore more salaries
Compare Infosys with

TCS

3.7
Compare

Wipro

3.7
Compare

Cognizant

3.8
Compare

Accenture

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview