Cognizant technology pvt ltd interview experience Real time questions & tips from candidates to crack your interview

Java Developer

Cognizant technology pvt ltd
upvote
share-icon
2 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Application story
I applied for this role on Naukri.com, and 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 primary focus on understanding every detail and the tech stack.

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

Tip 1: Add some strong projects to your resume.

Tip 2: Don't include 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?

2. Student Filtering

Create a Student class and a list of students. Write a program in Java 8 to filter all students with rollNo > 50, concatenate their first and last names, and return the result.

3. Second Largest Number

Easy
23m average time
78% success
0/40
Asked in company
Samsung

You have been given an array ‘a’ of ‘n’ unique non-negative integers.


Find the second largest and second smallest element from the array.


Return the two elements (second largest and second smallest) as another array of size 2.


Example :
Input: ‘n’ = 5, ‘a’ = [1, 2, 3, 4, 5]
Output: [4, 2]

The second largest element after 5 is 4, and the second smallest element after 1 is 2.
Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date8 Feb 2025
Coding problem6

1. CRUD Development

Create a CRUD application. How would you start? What classes would you create, and which annotations would be needed?

2. AWS Integration

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

3. Salary Filtering

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

4. Security Implementation

How would you implement security? What is @EnableWebSecurity?

5. Design Patterns

Are you familiar with design patterns? Explain.

6. Microservice Connection

How can you connect a microservice? (Learn)

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Programmer Analyst Trainee
2 rounds | 3 problems
Interviewed by Cognizant technology pvt ltd
1423 views
0 comments
0 upvotes
Genc Next
2 rounds | 7 problems
Interviewed by Cognizant technology pvt ltd
1744 views
0 comments
0 upvotes
Java Developer
3 rounds | 9 problems
Interviewed by Cognizant technology pvt ltd
2225 views
1 comments
0 upvotes
Frontend Developer
3 rounds | 7 problems
Interviewed by Cognizant technology pvt ltd
2426 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Java Developer
3 rounds | 20 problems
Interviewed by Ernst & Young (EY)
9061 views
2 comments
0 upvotes
company logo
Java Developer
3 rounds | 4 problems
Interviewed by SAP Labs
3149 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
7166 views
0 comments
0 upvotes