Cognizant Technology Private Ltd interview experience Real time questions & tips from candidates to crack your interview

Java Developer

Cognizant Technology Private Ltd
upvote
share-icon
2 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Application story
I applied for this role on Naukri.com. After a day or so, I received a call from HR, followed by two technical interviews.
Preparation
Duration: 6 Months
Topics: Java, Spring Boot, MySQL, Docker, AWS, DSA, HTML, CSS, JavaScript
Tip
Tip

Tip 1: Initially, spend some time on DSA.

Tip 2: For example, complete at least two projects with a strong focus on understanding every detail and the tech stack.

 

Application process
Where: Naukri
Eligibility: 5 years of experience in Spring Boot (Salary Package: 18 LPA)
Resume Tip
Resume tip

Tip 1: Add some good projects to your resume.

Tip 2: Don’t add any false information.

Interview rounds

01
Round
Medium
Face to Face
Duration60 minutes
Interview date3 Feb 2025
Coding problem3

1. Constructor Inheritance

Can a constructor be inherited from a parent class to a child class? (Learn)

2. Stream Filtering

Given a Student class and a list of students, write a Java 8 program to filter students with roll numbers greater than 50, concatenate their first and last names, and return the result.

3. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
Info Edge India (Naukri.com)HCL TechnologiesOracle

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date8 Feb 2025
Coding problem6

1. CRUD Design

Given a scenario to create a CRUD application, how would you start? What classes would you create, and which annotations would be required?

2. AWS Basics

Have you worked with AWS? How would you connect to S3? How would you deploy an application?

3. Stream Query

Using the Stream API, write a program to find the maximum salary by department.

4. Security Setup

  • How will you implement security?
  • What is @EnableWebSecurity?

5. Design Patterns

  • Singleton pattern
  • Circuit breaker pattern
  • Pub-sub pattern

6. Service Integration

How can you connect a microservice?

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which data structure is used to implement a DFS?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
9191 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
1002 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3586 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2856 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Java Developer
3 rounds | 20 problems
Interviewed by Ernst & Young (EY)
9543 views
2 comments
0 upvotes
company logo
Java Developer
3 rounds | 4 problems
Interviewed by SAP Labs
3369 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
8128 views
0 comments
0 upvotes