i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)
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...
I was interviewed in Nov 2024.
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.
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
I applied via Naukri.com and was interviewed in Dec 2023. There were 3 interview rounds.
1 round in fresher Java coding test
Second Java aptitude test
What people are saying about Cognizant
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.
Cognizant interview questions for designations
I applied via Naukri.com and was interviewed in Sep 2023. There were 2 interview rounds.
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.
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.
Get interview-ready with Top Cognizant Interview Questions
I applied via campus placement at St Thomas College, Thrissur
Plain apti test, easy, LRDI, Quant, VARC
I applied via Naukri.com and was interviewed in Jun 2023. There were 3 interview rounds.
Aptitude test questions java questions
I applied via Campus Placement
Java and Python are programming languages used for developing software applications.
Java is an object-oriented language used for developing desktop, web, and mobile applications.
Python is a high-level language used for web development, data analysis, artificial intelligence, and scientific computing.
Java is compiled and runs on a virtual machine, while Python is interpreted.
Java is statically typed, while Python is dyn...
OOPs concepts are the fundamental principles of object-oriented programming.
Encapsulation: Hiding the implementation details of an object and exposing only the necessary information.
Inheritance: Creating new classes from existing ones, inheriting their properties and methods.
Polymorphism: The ability of objects to take on many forms, allowing them to behave differently in different situations.
Abstraction: Focusing on t...
To become a technical lead and contribute to the development of innovative solutions.
I aim to continuously improve my technical skills and knowledge.
I want to gain experience in leading a team and managing projects.
I aspire to work on challenging projects that require creative problem-solving.
I hope to make a positive impact on the company and its customers through my work.
Example: I want to lead a team in developing a...
I applied via Company Website and was interviewed in May 2023. There were 4 interview rounds.
Aptitude test for fresher arithmetic,reasoning, English
Java and core java coding basics for fresher
I applied via Naukri.com and was interviewed in Apr 2023. There were 3 interview rounds.
There will be 2 java coding questions related to your job description
Use Java 8 features to find the second largest number and reverse a string.
Use streams and collectors to find the second largest number in an array.
Use StringBuilder to reverse a string in Java 8.
For Spring Boot questions, focus on dependency injection, auto-configuration, and RESTful services.
For core Java questions, focus on OOP concepts, collections, and exception handling.
Some of the top questions asked at the Cognizant Java Developer interview -
The duration of Cognizant Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 24 interviews
3 Interview rounds
based on 142 reviews
Rating in categories
Hyderabad / Secunderabad,
Chennai
+15-10 Yrs
Not Disclosed
Associate
72.3k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.6k
salaries
| ₹2.4 L/yr - ₹9.6 L/yr |
Senior Associate
48.6k
salaries
| ₹9 L/yr - ₹27.4 L/yr |
Senior Processing Executive
28.9k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹24.9 L/yr |
TCS
Infosys
Wipro
Accenture