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 Java Developer Interview Questions, Process, and Tips

Updated 4 Feb 2025

Top Infosys Java Developer Interview Questions and Answers

  • Q1. Which should be preferred between String and StringBuffer when there are many updates required to the data?
  • Q2. write a code to filter out loans with incomplete status using java 8 features.
  • Q3. 1.What is Singleton in java and create your own singleton class countering all breakable conditions? 2. What is Auto Configuration? 3. @Primary vs @Qualifier 4. What is i ...read more
View all 164 questions

Infosys Java Developer Interview Experiences

143 interviews found

Java Developer Interview Questions & Answers

user image Sushma Nayaka

posted on 14 Sep 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Why java is not 100% object oriented? Explain in detail?
  • Ans. 

    Java is not 100% object oriented because it supports primitive data types and static methods.

    • Java supports primitive data types like int, float, and boolean which are not objects.

    • Static methods in Java belong to the class itself and not to any specific object.

    • Java allows procedural programming constructs like static variables and methods.

    • Inheritance in Java is limited to single inheritance for classes, unlike pure obje

  • Answered by AI
  • Q2. What is JIT? Explain in Detail?
  • Ans. 

    JIT stands for Just-In-Time compiler, which compiles Java bytecode into native machine code at runtime for improved performance.

    • JIT compiler is a part of Java Virtual Machine (JVM) that helps in optimizing the performance of Java applications by compiling bytecode into native machine code on-the-fly.

    • It identifies frequently executed code and compiles it into native code for faster execution.

    • JIT compilation occurs durin...

  • Answered by AI

Skills evaluated in this interview

Java Developer Interview Questions & Answers

user image ajjarapu sivateja

posted on 26 Oct 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Explain hashmap
  • Ans. 

    HashMap is a data structure in Java that stores key-value pairs and allows fast retrieval of values based on keys.

    • HashMap is part of the Java Collections framework.

    • It uses hashing to store and retrieve elements efficiently.

    • Keys in a HashMap must be unique, but values can be duplicated.

    • Example: HashMap map = new HashMap<>(); map.put("apple", 5); int value = map.get("apple");

  • Answered by AI
  • Q2. Annotations in springboot
  • Ans. 

    Annotations in Spring Boot are used to provide metadata about the application, such as configuration, dependency injection, and request mapping.

    • Annotations are used to simplify the configuration of Spring applications.

    • Examples include @RestController for creating RESTful web services, @Autowired for dependency injection, and @RequestMapping for mapping HTTP requests to controller methods.

    • Annotations can be used to defi...

  • Answered by AI
  • Q3. Java code to explain exceptions using throws and throw
  • Ans. 

    Using throws and throw in Java to handle exceptions

    • Use 'throws' to declare an exception in a method signature

    • Use 'throw' to manually throw an exception within a method

    • Example: public void divide(int a, int b) throws ArithmeticException { if(b == 0) throw new ArithmeticException(); }

  • Answered by AI
  • Q4. Sql query to find third largest salary
  • Ans. 

    Use SQL query with ORDER BY and LIMIT to find third largest salary.

    • Use ORDER BY clause to sort salaries in descending order

    • Use LIMIT 2,1 to skip first two salaries and get the third largest salary

  • Answered by AI
  • Q5. Synchronization in multithreading
  • Ans. 

    Synchronization in multithreading ensures that only one thread can access a shared resource at a time.

    • Synchronization is achieved using the synchronized keyword in Java.

    • It can be applied to methods or code blocks.

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

  • Answered by AI

Skills evaluated in this interview

Java Developer Interview Questions Asked at Other Companies

asked in Deloitte
Q1. Sort 0 and 1 Problem Statement Given an integer array ARR of size ... read more
Q2. Parent class has run() and walk() . Parent run() - calls walk() C ... read more
asked in Infosys
Q3. Which should be preferred between String and StringBuffer when th ... read more
asked in Deloitte
Q4. Convert BST to Greater Sum Tree Given a Binary Search Tree (BST) ... read more
Q5. 2. What will happen if hashcode only returns a constant? How will ... read more
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - One-on-one 

(2 Questions)

  • Q1. Tell me about yourself
  • Ans. 

    I am a passionate Java Developer with 5 years of experience in developing web applications and implementing solutions using Java technologies.

    • 5 years of experience in Java development

    • Strong knowledge of web application development

    • Proficient in implementing solutions using Java technologies

  • Answered by AI
  • Q2. Why should we hire you
  • Ans. 

    I have a strong background in Java development with proven experience in delivering high-quality projects on time.

    • I have a solid understanding of Java programming language and its best practices

    • I have successfully completed multiple Java projects, showcasing my skills and expertise

    • I am a quick learner and can adapt to new technologies and frameworks easily

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Understand that the interviewer has a reason to ask every question. Think from the hirer's point of view before trying to answer.

Java Developer Interview Questions & Answers

user image Vivek Patel

posted on 13 Jul 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Java Streams Api
  • Q2. Java Core Questions
Round 2 - Behavioral 

(2 Questions)

  • Q1. About work experience
  • Q2. Regression Testing
Round 3 - HR 

(2 Questions)

  • Q1. Salary Negotiation
  • Q2. Notice Period Joining Date

Infosys interview questions for designations

 Senior Java Developer

 (19)

 Junior Java Developer

 (6)

 Java Software Developer

 (3)

 Associate Java Developer

 (2)

 Java Developer Trainee

 (1)

 Backend Java Developer

 (2)

 Fullstack Java Developer

 (1)

 Java Developer Consultant

 (1)

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Job Portal and was interviewed in Jun 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Method overloading vs overriding?
  • Ans. 

    Method overloading is having multiple methods in the same class with the same name but different parameters, while method overriding is redefining a method in a subclass with the same name and parameters as in the superclass.

    • Method overloading involves multiple methods with the same name but different parameters.

    • Method overriding involves redefining a method in a subclass with the same name and parameters as in the sup...

  • Answered by AI
  • Q2. String immutable reason?
  • Ans. 

    String in Java is immutable to ensure thread safety, security, and optimization.

    • Immutable strings are thread-safe as they cannot be modified concurrently.

    • Immutable strings prevent security vulnerabilities like SQL injection.

    • Immutable strings allow for string interning, optimizing memory usage.

    • Example: String str = "Hello"; str.concat(" World"); // New string created instead of modifying original.

  • Answered by AI
Round 2 - Coding Test 

Streams api..?factorial using streams

Skills evaluated in this interview

Get interview-ready with Top Infosys Interview Questions

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

I applied via Company Website and was interviewed in Jun 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Difference Between Interface and Abstract Classes?
  • Ans. 

    Interface is a blueprint of a class with only abstract methods, while abstract class can have both abstract and concrete methods.

    • Interfaces can only have abstract methods and cannot have any implementation, while abstract classes can have both abstract and concrete methods.

    • A class can implement multiple interfaces but can only extend one abstract class.

    • Interfaces are used to achieve multiple inheritance in Java, while ...

  • Answered by AI
  • Q2. What is indexing in Mysql?
  • Ans. 

    Indexing in MySQL is a way to optimize database queries by creating a data structure that allows for faster retrieval of data.

    • Indexes are created on columns in a table to speed up SELECT queries.

    • They work similar to an index in a book, allowing the database to quickly find the rows that match a certain value.

    • Indexes can be created using the CREATE INDEX statement.

    • Examples: CREATE INDEX idx_name ON table_name(column_nam

  • Answered by AI

Skills evaluated in this interview

Java Developer Jobs at Infosys

View all
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
-

I applied via Referral and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Java 8 related questions with some basic coding using java 8.
  • Q2. Print some thing java 8 lambda expression
  • Ans. 

    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!")

  • Answered by AI
Round 2 - Technical 

(1 Question)

  • Q1. Project related questions and some coding questions
Round 3 - HR 

(1 Question)

  • Q1. Work Details, education details

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Job Portal

Round 1 - Technical 

(2 Questions)

  • Q1. What is spring boot starters
  • Ans. 

    Spring Boot starters are a set of convenient dependency descriptors that you can include in your application.

    • Spring Boot starters provide pre-configured dependencies to simplify the setup of Spring applications.

    • They help in reducing the amount of boilerplate code needed to configure common functionalities.

    • Examples of Spring Boot starters include spring-boot-starter-web for web applications and spring-boot-starter-data-

  • Answered by AI
  • Q2. What is jvm
  • Ans. 

    JVM stands for Java Virtual Machine, it is an abstract computing machine that enables a computer to run Java programs.

    • JVM is responsible for converting Java bytecode into machine code that can be executed by the computer's operating system.

    • It provides a runtime environment for Java programs to run in a platform-independent manner.

    • JVM manages memory, handles garbage collection, and provides security features for Java ap...

  • Answered by AI
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. What is Functional Interface? What is Flat Map? What is Method Reference? What is stream API
  • Ans. 

    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> ...

  • Answered by AI
  • Q2. What is Flat Map
  • Ans. 

    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

  • Answered by AI
  • Q3. What is Stream API
  • Ans. 

    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 names = Arrays.asList("Alice", "Bob", "Charlie"); Stream stream = names.stream();

Answered by AI
  • Q4. How you handle logs in previous company
  • Q5. What is functional interface
  • Ans. 

    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

  • Answered by AI

    Interview Preparation Tips

    Interview preparation tips for other job seekers - Learn Java 8 Features as well as Log4J

    Skills evaluated in this interview

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

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

    Round 1 - Technical 

    (2 Questions)

    • Q1. Features of java 8,oops,Custom Exception ,Collections
    • Ans. 

      Java 8 introduced new features like lambda expressions and streams, OOPs concepts include inheritance and polymorphism, custom exceptions allow for user-defined exceptions, and collections provide data structures like lists and maps.

      • Java 8 features include lambda expressions and streams

      • OOPs concepts in Java include inheritance and polymorphism

      • Custom exceptions in Java allow for user-defined exceptions

      • Collections in Jav

    • Answered by AI
    • Q2. Annotations, Spring and Springboot difference,Design patterns,Scope types

    Skills evaluated in this interview

    Infosys Interview FAQs

    How many rounds are there in Infosys Java Developer interview?
    Infosys interview process usually has 1-2 rounds. The most common rounds in the Infosys interview process are Technical, One-on-one Round and HR.
    How to prepare for Infosys Java Developer interview?
    Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Infosys. The most common topics and skills that interviewers at Infosys expect are Java, Microservices, Spring Boot, Hibernate and SDLC.
    What are the top questions asked in Infosys Java Developer interview?

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

    1. write a code to filter out loans with incomplete status using java 8 featur...read more
    2. 1.What is Singleton in java and create your own singleton class countering all ...read more
    3. Difference Between Comparator and Comparable. What is fully qualified domain na...read more
    How long is the Infosys Java Developer interview process?

    The duration of Infosys Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

    Tell us how to improve this page.

    Infosys Java Developer Interview Process

    based on 113 interviews

    4 Interview rounds

    • Technical Round - 1
    • Technical Round - 2
    • HR Round - 1
    • HR Round - 2
    View more
    Join Infosys Creating the next opportunity for people, businesses & communities
    Infosys Java Developer Salary
    based on 1.4k salaries
    ₹2 L/yr - ₹10 L/yr
    At par with the average Java Developer Salary in India
    View more details

    Infosys Java Developer Reviews and Ratings

    based on 112 reviews

    3.8/5

    Rating in categories

    3.7

    Skill development

    3.7

    Work-life balance

    3.3

    Salary

    3.8

    Job security

    3.9

    Company culture

    3.0

    Promotions

    3.6

    Work satisfaction

    Explore 112 Reviews and Ratings
    Java Developer - Pune

    Pune,

    Chennai

    +1

    3-6 Yrs

    Not Disclosed

    Java Developer

    Pune,

    Chennai

    +1

    3-6 Yrs

    Not Disclosed

    Java Developer- Infosys

    Hyderabad / Secunderabad,

    Chennai

    +1

    5-10 Yrs

    Not Disclosed

    Explore more jobs
    Technology Analyst
    55.7k salaries
    unlock blur

    ₹0 L/yr - ₹0 L/yr

    Senior Systems Engineer
    50.6k salaries
    unlock blur

    ₹0 L/yr - ₹0 L/yr

    System Engineer
    39.5k salaries
    unlock blur

    ₹0 L/yr - ₹0 L/yr

    Technical Lead
    30.8k salaries
    unlock blur

    ₹0 L/yr - ₹0 L/yr

    Senior Associate Consultant
    28k salaries
    unlock blur

    ₹0 L/yr - ₹0 L/yr

    Explore more salaries
    Compare Infosys with

    TCS

    3.7
    Compare

    Wipro

    3.7
    Compare

    Cognizant

    3.7
    Compare

    Accenture

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