Upload Button Icon Add office photos
Engaged Employer

i

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

Cognizant Verified Tick

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Cognizant Java Developer Interview Questions, Process, and Tips for Experienced

Updated 28 Mar 2025

Top Cognizant Java Developer Interview Questions and Answers for Experienced

  • Q1. What array list and linkedlist difference,how hashmap internally working,what is synchronised and it's type,what is difference between abstract and interface,class loadin ...read more
  • Q2. write program fibonacci series, write program using boolean, write class cast exceptn, singleton design pattern(like you have to jvm one have jdk 1.7 and other have jdk 1 ...read more
  • Q3. What is idempotency? Solid ? Design patterns used in projects
View all 7 questions

Cognizant Java Developer Interview Experiences for Experienced

7 interviews found

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

I appeared for an interview in Nov 2024.

Round 1 - One-on-one 

(2 Questions)

  • Q1. Prime number program
  • Ans. 

    A program to check if a given number is prime or not.

    • Create a function to check if a number is prime by iterating from 2 to the square root of the number.

    • If the number is divisible by any number other than 1 and itself, it is not prime.

    • Handle edge cases like 0, 1, and negative numbers separately.

  • Answered by AI
  • Q2. 3rd highest salary employee
  • Ans. 

    To find the 3rd highest salary employee, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.

    • Use a SQL query to select distinct salaries in descending order

    • Use 'LIMIT 1 OFFSET 2' to get the 3rd highest salary

    • Join this result with the employee table to get the employee details

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Dec 2023. There were 3 interview rounds.

Round 1 - Coding Test 

1 round in fresher Java coding test

Round 2 - Aptitude Test 

Second Java aptitude test

Round 3 - Technical 

(2 Questions)

  • Q1. What JDK,JRE,JVM
  • Q2. What is inheritance

Java Developer Interview Questions Asked at Other Companies for Experienced

asked in Cognizant
Q1. What array list and linkedlist difference,how hashmap internally ... read more
asked in TCS
Q2. what are the difference between abstract class and interface, and ... read more
asked in Infosys
Q3. write a code to filter out loans with incomplete status using jav ... read more
asked in Cognizant
Q4. write program fibonacci series, write program using boolean, writ ... read more
asked in Capgemini
Q5. Is Java platform-independent, if yes why?
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is Static Method?
  • Ans. 

    Static method is a method that belongs to the class itself, not to any specific instance of the class.

    • Static methods can be called without creating an instance of the class.

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

    • Static methods are declared using the 'static' keyword.

    • Example: Math.max() is a static method in the Math class that returns the maximum of two numbers.

  • Answered by AI
  • Q2. LAMDA EXPRESSION?

Interview Preparation Tips

Interview preparation tips for other job seekers - Good
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Sep 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Do not use an unprofessional email address such as cool_boy@email.com. It shows a lack of professionalism by the candidate.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. How to make class immutable?
  • Ans. 

    To make a class immutable in Java, you can follow certain guidelines to ensure that its state cannot be changed once it is created.

    • Make the class final so that it cannot be extended.

    • Make all fields private and final to prevent modification.

    • Do not provide setter methods for the fields.

    • If the fields are mutable objects, return copies of them instead of the original objects in getter methods.

  • Answered by AI
  • Q2. What is idempotency? Solid ? Design patterns used in projects
  • Ans. 

    Idempotency is the property of an operation where multiple identical requests have the same effect as a single request.

    • Idempotency ensures that even if the same request is made multiple times, the result will be the same.

    • In RESTful APIs, using HTTP methods like GET and PUT can help achieve idempotency.

    • Design patterns like Command Pattern and State Pattern can be used to ensure idempotency in projects.

  • Answered by AI

Skills evaluated in this interview

Cognizant interview questions for designations

 Senior Java Developer

 (5)

 Junior Java Developer

 (1)

 Core Java Developer

 (1)

 Fullstack Java Developer

 (2)

 Java Full Stack Developer

 (4)

 Java Spring Boot Developer

 (1)

 Java Technical Lead

 (1)

 Software Engineer and Java Developer

 (1)

I applied via Naukri.com

Interview Questionnaire 

1 Question

  • Q1. How to sort an array list
  • Ans. 

    To sort an array list, use the Collections.sort() method.

    • Import the java.util.Collections class

    • Call the sort() method and pass the array list as parameter

    • Ensure the objects in the array list implement the Comparable interface or pass a Comparator object as second parameter

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Most of the questions will be based on theory like collections, immutable, wrapper classes, abstract classes, encapsulation etc

Skills evaluated in this interview

Get interview-ready with Top Cognizant Interview Questions

Interview Questionnaire 

1 Question

  • Q1. What array list and linkedlist difference,how hashmap internally working,what is synchronised and it's type,what is difference between abstract and interface,class loading mechanism in Java, you hat is sin...
  • Ans. 

    Java Developer interview questions covering array list, linkedlist, hashmap, synchronization, abstract vs interface, singleton class, Spring framework, database configuration, and Java 8 features.

    • ArrayList and LinkedList differ in terms of implementation, performance, and usage

    • HashMap uses hashing to store and retrieve key-value pairs

    • Synchronized is used to ensure thread safety and prevent race conditions

    • Abstract class...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - If you are going for java developer then collection is must you need to know,multithreading, oops concepts, strong hands on spring modules like security,aop, transaction with orm framework knowledge with rest api, and database knowledge means writing queries, I f you have all above things then no body will stop you to select in a interview. Best of luck

Skills evaluated in this interview

Java Developer Jobs at Cognizant

View all

Interview Questionnaire 

1 Question

  • Q1. Write program fibonacci series, write program using boolean, write class cast exceptn, singleton design pattern(like you have to jvm one have jdk 1.7 and other have jdk 1.8 how many instance created if one...
  • Ans. 

    This interview question covers various topics including programming, design patterns, data structures, and exception handling in Java.

    • Write a program to generate the Fibonacci series

    • Write a program using boolean variables

    • Explain the ClassCastException and how to handle it

    • Discuss the Singleton design pattern and its implementation with different JDK versions

    • Explain abstract classes and interfaces in your current project

    • ...

  • Answered by AI

Interview Preparation Tips

Round: Resume Shortlist
Experience: core java , spring, hibernate, jsp, jpa

Skills evaluated in this interview

Interview questions from similar companies

I applied via Recruitment Consultant and was interviewed in Nov 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Basic communication skills were tested. Sone techical questn too. Versant test is mandatory

Interview Preparation Tips

Interview preparation tips for other job seekers - Please never go for these third party vendors. They misguide you regarding profile . I went for this third party vendor named savantis solution and it really misguided me

Interview Questionnaire 

1 Question

  • Q1. In 1st round they asked aptitude questions And 2nd round was an technical hr interview in this they asked oops concepts and basic C programming

Interview Questionnaire 

2 Questions

  • Q1. No question asked
  • Q2. They call and said we will give 10k only

Interview Preparation Tips

Interview preparation tips for other job seekers - In pandamic i gave my interview so this would be reason that they didnt ask much question
Because of lockdown

Cognizant Interview FAQs

How many rounds are there in Cognizant Java Developer interview for experienced candidates?
Cognizant interview process for experienced candidates usually has 1-2 rounds. The most common rounds in the Cognizant interview process for experienced candidates are Technical, Resume Shortlist and Coding Test.
How to prepare for Cognizant Java Developer interview for experienced candidates?
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 Cognizant. The most common topics and skills that interviewers at Cognizant expect are Java, Microservices, Spring Boot, Hibernate and AWS.
What are the top questions asked in Cognizant Java Developer interview for experienced candidates?

Some of the top questions asked at the Cognizant Java Developer interview for experienced candidates -

  1. What array list and linkedlist difference,how hashmap internally working,what i...read more
  2. write program fibonacci series, write program using boolean, write class cast e...read more
  3. What is idempotency? Solid ? Design patterns used in proje...read more
How long is the Cognizant Java Developer interview process?

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

Tell us how to improve this page.

Cognizant Java Developer Interview Process for Experienced

based on 4 interviews

1 Interview rounds

  • Technical Round
View more

Java Developer Interview Questions from Similar Companies

View all
Cognizant Java Developer Salary
based on 1.5k salaries
₹2.6 L/yr - ₹15 L/yr
41% more than the average Java Developer Salary in India
View more details

Cognizant Java Developer Reviews and Ratings

based on 151 reviews

4.0/5

Rating in categories

3.9

Skill development

3.9

Work-life balance

3.7

Salary

3.7

Job security

3.9

Company culture

3.5

Promotions

3.6

Work satisfaction

Explore 151 Reviews and Ratings
Java Developer

Bangalore / Bengaluru

5-10 Yrs

Not Disclosed

Java Developer

Pune,

Chennai

+1

6-11 Yrs

₹ 19-34 LPA

Cognizant || Urgent job opening || Permanent job|| Java Developer

Hyderabad / Secunderabad,

Bangalore Rural

+1

5-10 Yrs

Not Disclosed

Explore more jobs
Associate
72.4k salaries
unlock blur

₹5.1 L/yr - ₹16 L/yr

Programmer Analyst
55.6k salaries
unlock blur

₹2.4 L/yr - ₹9.3 L/yr

Senior Associate
50.3k salaries
unlock blur

₹9 L/yr - ₹28.6 L/yr

Senior Processing Executive
29.1k salaries
unlock blur

₹1.8 L/yr - ₹9.2 L/yr

Technical Lead
17.7k salaries
unlock blur

₹6 L/yr - ₹25 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.7
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

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