Premium Employer

i

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

Coforge Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Coforge Senior Java Developer Interview Questions and Answers

Updated 14 Mar 2025

7 Interview questions

🔥 Asked by recruiter 2 times
A Senior Java Developer was asked 3mo ago
Q. What is the Collection Framework?
Ans. 

The Java Collection Framework provides a set of classes and interfaces for storing and manipulating groups of objects.

  • Consists of interfaces like List, Set, and Map.

  • List example: ArrayList, LinkedList for ordered collections.

  • Set example: HashSet, TreeSet for unique elements.

  • Map example: HashMap, TreeMap for key-value pairs.

  • Supports generics for type safety.

A Senior Java Developer was asked
Q. Write a program to filter employees using Java streams.
Ans. 

Program to filter employees using Java streams

  • Create a list of employees

  • Use stream() method to convert list to stream

  • Use filter() method to filter employees based on condition

  • Use collect() method to convert stream back to list

Senior Java Developer Interview Questions Asked at Other Companies

asked in Amdocs
Q1. Remove the Kth Node from the End of a Linked List You are given a ... read more
asked in Amdocs
Q2. Intersection of Linked List Problem You are provided with two sin ... read more
asked in Amdocs
Q3. Merge Two Sorted Linked Lists Problem Statement You are provided ... read more
asked in Amdocs
Q4. LRU Cache Design Question Design a data structure for a Least Rec ... read more
asked in Caspex Corp
Q5. How would you configure Jenkins or GitLab's CICD pipelines to tri ... read more
A Senior Java Developer was asked
Q. What happens when you set the port number to 0 for a service in Spring Boot?
Ans. 

Setting port number as 0 in Spring Boot for a service

  • Setting port number as 0 allows the operating system to choose an available port

  • This is useful when running multiple instances of the same service on the same machine

  • To set port number as 0 in Spring Boot, add 'server.port=0' to application.properties or application.yml

A Senior Java Developer was asked
Q. What is the impact of changing annotations on Spring Boot classes?
Ans. 

Changing annotations on Spring Boot classes can have significant impact on the application.

  • Changing annotations can affect the behavior of the application

  • Annotations can control the lifecycle of beans, security, caching, etc.

  • Removing or modifying annotations can cause runtime errors

  • Adding new annotations can introduce new functionality

  • Annotations can affect the performance of the application

A Senior Java Developer was asked
Q. What is the difference between ArrayList and LinkedList?
Ans. 

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

  • ArrayList provides constant time for accessing elements while LinkedList provides constant time for adding or removing elements.

  • ArrayList is better for storing and accessing data while LinkedList is better for manipulating data.

  • ArrayList is faster for iterating through elements while LinkedList is faster for addin...

A Senior Java Developer was asked
Q. Singleton class in Java Why string is immutable in Java ? Difference between ArrayList & LinkedList What is IOC in Spring Find 3rd largest integer in integer array using streams in java. Java 8 nee feat...
Ans. 

A set of interview questions for a Senior Java Developer position.

  • Singleton class in Java is a class that allows only one instance of itself to be created.

  • String is immutable in Java because it ensures thread safety and allows for efficient memory management.

  • ArrayList and LinkedList are both implementations of the List interface, but differ in their underlying data structure and performance characteristics.

  • IOC (In...

A Senior Java Developer was asked
Q. Different exceptions in Spring Boot
Ans. 

Spring Boot has various exceptions for different scenarios.

  • DataAccessException - for database access errors

  • HttpMessageNotReadableException - for errors in HTTP message conversion

  • MethodArgumentNotValidException - for validation errors in request parameters

  • NoSuchBeanDefinitionException - for errors in bean configuration

  • UnauthorizedException - for authentication and authorization errors

Are these interview questions helpful?

Coforge Senior Java Developer Interview Experiences

6 interviews found

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

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

Round 1 - Technical 

(5 Questions)

  • Q1. Comparable and comparator
  • Q2. Singleton class
  • Q3. Springboot questions were asked
  • Q4. Java class loader
  • Q5. Java 8 coding questions

Interview Preparation Tips

Topics to prepare for Coforge Senior Java Developer interview:
  • Java
  • Spring Boot
Interview preparation tips for other job seekers - Prepare well for java 8 coding questions
Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Recruitment Consulltant and was interviewed in Mar 2024. There was 0 interview round.

  • Q1. What is java and springboot
  • Q2. What is collection framework
  • Ans. 

    The Java Collection Framework provides a set of classes and interfaces for storing and manipulating groups of objects.

    • Consists of interfaces like List, Set, and Map.

    • List example: ArrayList, LinkedList for ordered collections.

    • Set example: HashSet, TreeSet for unique elements.

    • Map example: HashMap, TreeMap for key-value pairs.

    • Supports generics for type safety.

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

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

Round 1 - Technical 

(1 Question)

  • Q1. Coding questions related to java 8 and design patterns.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Job Portal and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Java8 streams, Spring boot
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
-

I appeared for an interview in Jan 2024.

Round 1 - Technical 

(1 Question)

  • Q1. Singleton class in Java Why string is immutable in Java ? Difference between ArrayList & LinkedList What is IOC in Spring Find 3rd largest integer in integer array using streams in java. Java 8 nee featur...
  • Ans. 

    A set of interview questions for a Senior Java Developer position.

    • Singleton class in Java is a class that allows only one instance of itself to be created.

    • String is immutable in Java because it ensures thread safety and allows for efficient memory management.

    • ArrayList and LinkedList are both implementations of the List interface, but differ in their underlying data structure and performance characteristics.

    • IOC (Inversi...

  • Answered by AI

Skills evaluated in this interview

I applied via Recruitment Consulltant and was interviewed in Jun 2022. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Differnce between ArrayList and LinkedList
  • Ans. 

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

    • ArrayList provides constant time for accessing elements while LinkedList provides constant time for adding or removing elements.

    • ArrayList is better for storing and accessing data while LinkedList is better for manipulating data.

    • ArrayList is faster for iterating through elements while LinkedList is faster for adding or ...

  • Answered by AI
  • Q2. Write program to filter employees using java streams
  • Ans. 

    Program to filter employees using Java streams

    • Create a list of employees

    • Use stream() method to convert list to stream

    • Use filter() method to filter employees based on condition

    • Use collect() method to convert stream back to list

  • Answered by AI
Round 2 - One-on-one 

(3 Questions)

  • Q1. Different exceptions in Spring Boot
  • Ans. 

    Spring Boot has various exceptions for different scenarios.

    • DataAccessException - for database access errors

    • HttpMessageNotReadableException - for errors in HTTP message conversion

    • MethodArgumentNotValidException - for validation errors in request parameters

    • NoSuchBeanDefinitionException - for errors in bean configuration

    • UnauthorizedException - for authentication and authorization errors

  • Answered by AI
  • Q2. Impact of changing annotations on spring boot classes
  • Ans. 

    Changing annotations on Spring Boot classes can have significant impact on the application.

    • Changing annotations can affect the behavior of the application

    • Annotations can control the lifecycle of beans, security, caching, etc.

    • Removing or modifying annotations can cause runtime errors

    • Adding new annotations can introduce new functionality

    • Annotations can affect the performance of the application

  • Answered by AI
  • Q3. Adding port number as 0 for a service in Spring boot
  • Ans. 

    Setting port number as 0 in Spring Boot for a service

    • Setting port number as 0 allows the operating system to choose an available port

    • This is useful when running multiple instances of the same service on the same machine

    • To set port number as 0 in Spring Boot, add 'server.port=0' to application.properties or application.yml

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Coforge Senior Java Developer interview:
  • Core Java
  • Spring Boot
  • Hibernate
Interview preparation tips for other job seekers - OOPs, Design Patterns, Multithreading, Collections, Spring Boot basics, Annotations, Hibernate, Database queries.

Skills evaluated in this interview

What people are saying about Coforge

View All
a senior data engineer
5d
Need Help!!! Referral Required...
I have 3.5+ yoe. I resigned because there’s been no increment for the past 2 years. They delaying and cutting VP even though I received a full performance rating. 1 month and 5 days are left in my notice period. Now I’m worried. I’m not getting any interview calls. I’ve been applying to 15+ companies daily, updating my Naukri.com, LinkedIn, and other platform profiles, and even applying on company websites. I really need a referral. Please help Tech: Azure, Databricks, PySpark, SQL, Python, Delta lake.
Got a question about Coforge?
Ask anonymously on communities.

Interview questions from similar companies

I appeared for an interview before Dec 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 100 Minutes
Round difficulty - Medium

  • Q1. 

    Change Start Node Problem Statement

    You are provided with a singly linked list and an integer K. The objective is to make the Kth node from the end of the linked list the starting node of the linked list.

    ...
  • Ans. 

    Given a singly linked list and an integer K, rearrange the list such that the Kth node from the end becomes the starting node.

    • Traverse the linked list to find the length and the Kth node from the end.

    • Update the pointers to rearrange the list accordingly.

    • Handle edge cases like K being equal to 1 or the length of the list.

  • Answered by AI
  • Q2. 

    Valid Parentheses Problem Statement

    Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.

    Input:

    The first line contains an...
  • Ans. 

    Check if given strings containing parentheses are balanced or not.

    • Use a stack to keep track of opening parentheses

    • Iterate through the string and push opening parentheses onto the stack

    • When a closing parentheses is encountered, pop from the stack and check if it matches the corresponding opening parentheses

    • If stack is empty at the end and all parentheses are matched, the string is balanced

  • Answered by AI
Round 2 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

  • Q1. 

    Alien Dictionary Problem Statement

    You are provided with a sorted dictionary (by lexical order) in an alien language. Your task is to determine the character order of the alien language from this dictiona...

  • Ans. 

    Given a sorted alien dictionary in an array of strings, determine the character order of the alien language.

    • Iterate through the dictionary to build a graph of character dependencies based on adjacent words.

    • Perform a topological sort on the graph to determine the character order.

    • Return the character array representing the order of characters in the alien language.

  • Answered by AI
  • Q2. 

    Chocolate Distribution Problem

    You are given an array/list CHOCOLATES of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M'...

  • Ans. 

    Distribute chocolates among students to minimize the difference between the largest and smallest number of chocolates.

    • Sort the array of chocolates in ascending order.

    • Iterate through the array and find the minimum difference between the elements by considering 'M' elements at a time.

    • Return the minimum difference found as the result.

  • Answered by AI
Round 3 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

  • Q1. 

    Inplace Rotate Matrix 90 Degrees Anti-Clockwise

    You are provided with a square matrix of non-negative integers of size 'N x N'. The task is to rotate this matrix by 90 degrees in an anti-clockwise directi...

  • Ans. 

    Rotate a square matrix by 90 degrees anti-clockwise without using extra space.

    • Iterate through each layer of the matrix from outer to inner layers

    • Swap elements in groups of 4 to rotate them in place

    • Handle odd-sized matrices separately by adjusting the loop boundaries

  • Answered by AI
  • Q2. 

    Flip The Bits Problem Statement

    Given a binary string S of length N where initially all characters are '1', perform exactly M operations, choosing from four specific operations, and determine how many dis...

  • Ans. 

    Count the number of distinct final strings possible after performing a given number of operations on a binary string.

    • Iterate through all possible combinations of operations to determine the final string after each operation.

    • Use bitwise operations to efficiently flip the bits based on the chosen operation.

    • Keep track of distinct final strings using a set data structure.

    • Return the size of the set as the number of distinct...

  • Answered by AI
Round 4 - Coding Test 

(1 Question)

Round duration - 120 Minutes
Round difficulty - Medium

  • Q1. 

    Next Greater Element Problem Statement

    Given a list of integers of size N, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X is the firs...

  • Ans. 

    Find the Next Greater Element for each element in a list of integers.

    • Iterate through the list of integers from right to left.

    • Use a stack to keep track of elements for which the Next Greater Element is not yet found.

    • Pop elements from the stack until a greater element is found or the stack is empty.

    • Assign the Next Greater Element as the top element of the stack or -1 if the stack is empty.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from National Institute of Technology, Manipur. I applied for the job as SDE - 1 in BengaluruEligibility criteriaAbove 7 CGPALarsen & Toubro Infotech (LTI) interview preparation:Topics to prepare for the interview - Data Structures, DBMS, OOPS, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 1 MonthInterview preparation tips for other job seekers

Tip 1 : Practice Medium level question.
Tip 2 : Do atleast 2 projects
Tip 3 : More Focus on your Communication skill

Application resume tips for other job seekers

Tip 1 : Full Command on your resume and make short atleast 1 page with normal color and font.
Tip 2 : Have mentioned some good projects on resume.

Final outcome of the interviewRejected

Skills evaluated in this interview

Are these interview questions helpful?

I applied via Campus Placement and was interviewed before Sep 2021. There were 3 interview rounds.

Round 1 - Aptitude Test 

It was from college placement, basic question such as relative velocity, ratio and proportion, unitary method and 2 programmin question

Round 2 - Group Discussion 

Don't remember it was 2 years ago

Round 3 - One-on-one 

(6 Questions)

  • Q1. Tell me about yourself.
  • Q2. Brief description of myself and then the minor and major projects I worked upon.
  • Q3. Pattern question in any language
  • Q4. Provided the answer in python language
  • Q5. Basics of DAA, Os, DBMS
  • Q6. Don't remember the exact questions but answers were 3 out 5 correct and program was also correct

Interview Preparation Tips

Topics to prepare for LTIMindtree Software Developer interview:
  • Daa
  • DBMS
  • Operating Systems
  • Computer Networking
Interview preparation tips for other job seekers - Since it was college placement job most questions was from basics of what you study in CS

Interview Questionnaire 

3 Questions

  • Q1. Tr1- difference between switch case and if else, write the code for sorting
  • Ans. 

    Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.

    • Switch case is faster than if else for multiple conditions

    • If else is more readable for binary conditions

    • Sorting can be done using bubble sort, insertion sort, quick sort, etc.

    • Example code for bubble sort: for(i=0;iarr[j+1]){swap(&arr[j],&arr[j+1]);}}}

  • Answered by AI
  • Q2. Tr2-difference between compiler and interpreter, Solve a challange on their own coding platform with proper output
  • Ans. 

    Difference between compiler and interpreter with a coding challenge

    • Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution

    • Compiler generates an executable file while interpreter does not

    • Compiler is faster but debugging is harder while interpreter is slower but debugging is easier

    • Coding challenge: Write a program to find the sum of two numbers...

  • Answered by AI
  • Q3. Oops concept

I applied via Naukri.com and was interviewed before Sep 2019. There were 6 interview rounds.

Interview Questionnaire 

3 Questions

  • Q1. IQ Test
  • Q2. Machine Test
  • Q3. Face To Face

Interview Preparation Tips

Interview preparation tips for other job seekers - basically there are 3 rounds:-
1. IQ Test
2. Machine Test
3. Face to Face

IQ Test is not so tough but prepare well Machine Test
Machine Test Question are like :-
Q.1 - We declare a variable in C++ like "is_this_a_variable" and in Java like "IsThisAVariable". There is underscore in between every word and first alphabet of every word is in lowercase in C++ and in Java first alphabet is in capital without underscore. Create a program in which if user input a string in a C++ variable format it will convert the input in java variable format.

Q2. Count the frequency of a string.
user input string - pqhphi
output-
p - 2
q - 1
h - 2
i - 1

Be strong in algorithms and data structure.

Coforge Interview FAQs

How many rounds are there in Coforge Senior Java Developer interview?
Coforge interview process usually has 1-2 rounds. The most common rounds in the Coforge interview process are Technical and One-on-one Round.
How to prepare for Coforge Senior 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 Coforge. The most common topics and skills that interviewers at Coforge expect are Java, Microservices, Spring Boot, Java Spring Boot and Hibernate.
What are the top questions asked in Coforge Senior Java Developer interview?

Some of the top questions asked at the Coforge Senior Java Developer interview -

  1. Adding port number as 0 for a service in Spring b...read more
  2. Impact of changing annotations on spring boot clas...read more
  3. Write program to filter employees using java stre...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3.4/5

based on 5 interview experiences

Difficulty level

Moderate 80%
Hard 20%

Duration

Less than 2 weeks 100%
View more
Join Coforge Engage with the emerging!
Coforge Senior Java Developer Salary
based on 24 salaries
₹7.9 L/yr - ₹31.9 L/yr
15% more than the average Senior Java Developer Salary in India
View more details

Coforge Senior Java Developer Reviews and Ratings

based on 4 reviews

3.3/5

Rating in categories

2.7

Skill development

3.4

Work-life balance

3.4

Salary

2.6

Job security

2.6

Company culture

2.8

Promotions

2.6

Work satisfaction

Explore 4 Reviews and Ratings
Senior Java Developer

Greater Noida

4-8 Yrs

Not Disclosed

Sr. Java Developer

Mumbai

3-8 Yrs

Not Disclosed

Explore more jobs
Senior Software Engineer
4.9k salaries
unlock blur

₹6.2 L/yr - ₹23.1 L/yr

Technical Analyst
2.8k salaries
unlock blur

₹17.7 L/yr - ₹32 L/yr

Software Engineer
2.2k salaries
unlock blur

₹3.5 L/yr - ₹8 L/yr

Senior Test Engineer
1.8k salaries
unlock blur

₹5.5 L/yr - ₹17.1 L/yr

Technology Specialist
1.3k salaries
unlock blur

₹21.9 L/yr - ₹39 L/yr

Explore more salaries
Compare Coforge with

Capgemini

3.7
Compare

Cognizant

3.7
Compare

Accenture

3.7
Compare

Infosys

3.6
Compare
write
Share an Interview