Upload Button Icon Add office photos

Infosys Consulting

Compare button icon Compare button icon Compare

Filter interviews by

Infosys Consulting Java Developer Interview Questions and Answers

Updated 7 May 2021

Infosys Consulting Java Developer Interview Experiences

1 interview found

Interview Questionnaire 

1 Question

  • Q1. Basic questions on java

Interview questions from similar companies

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

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

Round 1 - Technical 

(3 Questions)

  • Q1. Given an array of non-negative integers.Find the length of the longest subsequence such that elements in the subsequence are contiguous integers. The consecutive numbers can be in any order. Example n=7 nu...
  • Ans. 

    Find the length of the longest subsequence of contiguous integers in an array.

    • Sort the array

    • Iterate through the array and check for consecutive integers

    • Keep track of the longest subsequence found

  • Answered by AI
  • Q2. Get list of pincodes from these objects Employee{ id Long, name String, Addresses : List
    } Addresses{ houseNo long, pindcode long, state String, country String, } Ans. Use flatMap to flatten and then use m...
  • Ans. 

    Use flatMap and map to extract list of pincodes from Employee objects

    • Use flatMap to flatten the list of Addresses in each Employee object

    • Use map to iterate over the flattened list and extract the pincodes

    • Example: employeeList.stream().flatMap(emp -> emp.getAddresses().stream()).map(address -> address.getPincode()).collect(Collectors.toList())

  • Answered by AI
  • Q3. What is Database Pooling, Hikari and its configurations. Java 8 to current enchancements and current java version Factory and Builder design patterns to explain and code Project expalantion and details, Cr...
  • Ans. 

    Database pooling is a technique used to manage a pool of database connections for efficient resource utilization. HikariCP is a popular database connection pooling library in Java.

    • HikariCP is a high-performance database connection pooling library for Java applications.

    • It is known for its low latency and high throughput.

    • Configurations for HikariCP include settings such as maximum pool size, connection timeout, and idle ...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare DSA and design patterns and knowledge of springboot,java & streams API advance methods etc.

Skills evaluated in this interview

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

I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Explain Spring Boot
  • Q2. What is Redux in React
  • Q3. What is Context API in React
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. They asked some core Java Concepts,String,Java 8,SpringBoot Architecture,Stream API code
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected
Round 1 - Technical 

(1 Question)

  • Q1. Basic java and API
Round 2 - HR 

(1 Question)

  • Q1. Normal Question

Java Developer Interview Questions & Answers

Incedo user image Nithin Krishna

posted on 31 Aug 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Difference between ArrayList and LinkedList?
  • Ans. 

    ArrayList is implemented as a resizable array, while LinkedList is implemented as a doubly linked list.

    • ArrayList provides fast random access, LinkedList provides fast insertion and deletion.

    • ArrayList uses more memory as it needs to allocate a fixed size array, LinkedList uses more memory for storing references to the next and previous elements.

    • Example: ArrayList is better for scenarios where random access is required, ...

  • Answered by AI
  • Q2. Difference between HashMap and HashTable?
  • Ans. 

    HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.

    • HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.

    • HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.

    • HashMap is faster than HashTable as it is non-synchronized, but HashTable is preferred in multi...

  • Answered by AI

Skills evaluated in this interview

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

(5 Questions)

  • Q1. What is the contract between hashCode and equals method?
  • Ans. 

    The contract between hashCode and equals method is that if two objects are equal according to the equals method, then their hash codes must also be equal.

    • hashCode and equals method must be consistent - if two objects are equal according to equals method, their hash codes must be equal

    • If two objects have the same hash code, they may or may not be equal according to equals method

    • Overriding equals method in a class requir...

  • Answered by AI
  • Q2. Features introduced in Java 8
  • Ans. 

    Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods in interfaces.

    • Lambda expressions allow you to pass functions as arguments.

    • Functional interfaces have a single abstract method and can be used with lambda expressions.

    • Streams provide a way to work with sequences of elements.

    • Default methods allow interfaces to have method implementations.

  • Answered by AI
  • Q3. What are the ways to start a thread
  • Ans. 

    Ways to start a thread in Java

    • Extending the Thread class and overriding the run() method

    • Implementing the Runnable interface and passing it to a Thread object

    • Using a thread pool from the Executors class

  • Answered by AI
  • Q4. What will happen if you start a thread which is already running
  • Ans. 

    The thread will continue running as it is already active

    • The thread will not be started again if it is already running

    • Attempting to start a thread that is already running will not have any effect

    • The thread will continue its execution without any interruption

  • Answered by AI
  • Q5. Explain about the join and sleep method
  • Ans. 

    Join method is used to wait for a thread to finish its execution, while sleep method is used to pause the execution of a thread for a specified amount of time.

    • Join method is used to wait for a thread to finish its execution before moving on to the next task.

    • Sleep method is used to pause the execution of a thread for a specified amount of time, allowing other threads to run.

    • Example: thread1.join() will wait for thread1 ...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Just listen to a lot of mock interview or original interview videos to get a hang of how an interview will be and even to check your knowledge and recall the things which you have learned.

Skills evaluated in this interview

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

I was interviewed in Jul 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. Micro service disadvantage
  • Ans. 

    Microservices can introduce complexity, communication overhead, and potential performance issues.

    • Increased complexity due to managing multiple services

    • Communication overhead between services

    • Potential performance issues due to network latency

    • Difficulty in maintaining consistency across services

  • Answered by AI
  • Q2. @functionalinterface can we extend or not, map & flatmap
  • Ans. 

    No, @FunctionalInterface cannot be extended. Map and flatMap are default methods in the interface and cannot be overridden.

    • No, @FunctionalInterface cannot be extended as it is a single abstract method interface.

    • Map and flatMap are default methods in the interface and cannot be overridden.

    • Example: public interface MyInterface { void myMethod(); default void myDefaultMethod() { // implementation } }

  • Answered by AI

Skills evaluated in this interview

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

(2 Questions)

  • Q1. Java8 coding to filter the vowels
  • Ans. 

    Using Java8 to filter vowels from an array of strings

    • Use Java8 stream and filter to iterate through each string in the array

    • Use a lambda expression to check if each character is a vowel

    • Collect the filtered strings into a new array

  • Answered by AI
  • Q2. Java8, Multi Threading, Hibernate, JPA

Skills evaluated in this interview

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

I applied via Company Website and was interviewed in Mar 2024. There were 5 interview rounds.

Round 1 - Aptitude Test 

30 multiple choice questions

Round 2 - Coding Test 

Two coding questions

Round 3 - One-on-one 

(1 Question)

  • Q1. Oops questions like main principles of oops
Round 4 - One-on-one 

(1 Question)

  • Q1. Deep in project
Round 5 - HR 

(1 Question)

  • Q1. Self intro, family background,some hr questions

Tell us how to improve this page.

Infosys Consulting Java Developer Salary
based on 8 salaries
₹6 L/yr - ₹8 L/yr
20% more than the average Java Developer Salary in India
View more details
Senior Consultant
385 salaries
unlock blur

₹11.9 L/yr - ₹36.2 L/yr

Consultant
334 salaries
unlock blur

₹10 L/yr - ₹24.8 L/yr

Business Consultant
303 salaries
unlock blur

₹15.3 L/yr - ₹24.2 L/yr

Senior Associate Consultant
144 salaries
unlock blur

₹6.5 L/yr - ₹14.8 L/yr

Associate Consultant
139 salaries
unlock blur

₹6 L/yr - ₹13.2 L/yr

Explore more salaries
Compare Infosys Consulting with

TCS

3.7
Compare

Wipro

3.7
Compare

HCLTech

3.5
Compare

Tech Mahindra

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