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 Technical Lead Interview Questions, Process, and Tips

Updated 5 Nov 2021

Cognizant Java Technical Lead Interview Experiences

1 interview found

I applied via Recruitment Consultant and was interviewed in Oct 2021. There were 4 interview rounds.

Interview Questionnaire 

4 Questions

  • Q1. What is the Controller Advice?
  • Ans. 

    Controller Advice is a mechanism in Spring MVC to handle exceptions globally.

    • It is used to handle exceptions across multiple controllers.

    • It can be used to add common data to the model.

    • It can be used to customize the response status code and message.

    • It can be used to redirect to a custom error page.

  • Answered by AI
  • Q2. Why we need 2 way SSL?
  • Ans. 

    2 way SSL is needed for mutual authentication between client and server.

    • 2 way SSL ensures that both client and server are authenticated

    • It provides an extra layer of security by verifying the identity of both parties

    • It is commonly used in financial transactions, healthcare, and government applications

  • Answered by AI
  • Q3. What is Decorator design pattern
  • Ans. 

    Decorator pattern adds behavior to an object dynamically without affecting its existing behavior.

    • It is a structural pattern

    • It involves a component interface, concrete component, decorator interface, and concrete decorator

    • Decorators wrap around components to add new behavior

    • It allows for flexible and dynamic behavior modification

    • Example: Java I/O streams use decorator pattern

  • Answered by AI
  • Q4. How to group by in streams
  • Ans. 

    Grouping by in streams in Java

    • Use the 'groupingBy' method from the 'Collectors' class

    • Pass a lambda expression to specify the grouping criteria

    • The result is a Map with the grouping criteria as keys and the grouped elements as values

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - It’s was good experience. Interviewer was technically sound. So don’t try to fool him/her. As it’s for a lead position somemdesigning question and leading attitude check.

This was second round.
Waiting for feedback

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Approached by Company and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Find 2nd max element.
  • Ans. 

    Find 2nd max element in an array of strings.

    • Sort the array in descending order

    • Return the element at index 1

  • Answered by AI
  • Q2. Sort strings on the basis of city.
  • Ans. 

    Sort strings based on city names.

    • Use Arrays.sort() method with a custom Comparator to sort strings based on city names.

    • Create a Comparator that compares the city names of two strings.

    • Example: String[] cities = {"New York", "London", "Paris"};

    • Example: Arrays.sort(cities, (a, b) -> a.compareTo(b));

  • Answered by AI
Round 2 - Behavioral 

(2 Questions)

  • Q1. How did you handle team conficts.
  • Ans. 

    I addressed team conflicts by promoting open communication, active listening, and facilitating constructive discussions.

    • Encouraged team members to express their concerns and viewpoints openly

    • Acted as a mediator to resolve conflicts and find common ground

    • Implemented team-building activities to improve collaboration and trust

    • Provided constructive feedback and guidance to help team members work through conflicts

  • Answered by AI
  • Q2. A struggle you would like to tell.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well for technical round, managerial round focuses on team ability and design.

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Dec 2024.

Round 1 - Technical 

(1 Question)

  • Q1. Spring Boot, Microservice Basic
Round 2 - Technical 

(1 Question)

  • Q1. RestAPI implementation
  • Ans. 

    RestAPI implementation involves creating web services using HTTP methods to interact with data.

    • Use HTTP methods like GET, POST, PUT, DELETE to perform CRUD operations on resources

    • Implement endpoints with appropriate request and response formats (JSON, XML)

    • Secure API with authentication and authorization mechanisms like OAuth

    • Document API using tools like Swagger for easy consumption by clients

  • Answered by AI
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

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

Round 1 - Technical 

(1 Question)

  • Q1. Use of static in main function
  • Ans. 

    Using static in main function allows it to be called without creating an instance of the class.

    • Static in main function allows it to be called directly without creating an object of the class.

    • Static methods can be called using the class name itself, without creating an object.

    • Example: public static void main(String[] args) { }

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Mar 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Data Structures, logical questions

Round 2 - Technical 

(1 Question)

  • Q1. Springboot, microservices, Data sources,architecture design
Round 3 - HR 

(1 Question)

  • Q1. General HR disccussion

Interview Questionnaire 

1 Question

  • Q1. Related to core java and spring security
Interview experience
1
Bad
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Jan 2025.

Round 1 - Coding Test 

A sequence was provided: 4181, 2684, 1597, 987, 610.
first 2 are given and write code for other value calculation using java 8

The second question required writing a reverse of a palindrome using both Java 8 streams. I was able to successfully write both and clear the first round.

Round 2 - Technical 

(6 Questions)

  • Q1. Interviewer was himself not knowing anything as it was walkin drive he was sitting infront of me and checking questions on phone Introduction that he inturrepted in between when I was introducing myself
  • Q2. What are the features of Java 17, specifically related to sealed classes, including their syntax and necessity, along with the potential errors encountered when invoking a sealed class?
  • Ans. 

    Java 17 introduces sealed classes to restrict inheritance and improve code maintainability.

    • Sealed classes are declared using the 'sealed' keyword followed by the permitted subclasses.

    • Subclasses of a sealed class must be either final or sealed themselves.

    • Errors may occur when trying to extend a sealed class with a non-permitted subclass.

  • Answered by AI
  • Q3. Java 8 feathers stream api, functional interface, Intermittent operator ,Ternary operator, Prediction,Bi predicate. Answered all successfully
  • Q4. Draw low level design of implementation of notify me if item is back in stock in a ecommerce application
  • Ans. 

    Implementation of 'notify me if item is back in stock' feature in an ecommerce application

    • Create a database table to store user notifications for out-of-stock items

    • Implement a service to check item availability and send notifications to subscribed users

    • Provide a user interface for users to subscribe to notifications for specific items

  • Answered by AI
  • Q5. All design patterns which I know. Asked me to implement adapter pattern on paper
  • Q6. Then given a problem that concurrent way perform operation on excell to decrease the response time

Interview Preparation Tips

Interview preparation tips for other job seekers - I always suggest staying away from these companies commonly referred to as WITCH (Wipro, Infosys, TCS, Cognizant, HCL). You will rarely encounter good interviewers there unless there is an extreme necessity. Interview was judging me on the basis of syntex by seeing in his phone. How can everyone write each and everything on copy. For the low level design first time in my 6 years carrier someone asked to design without using kafka or any other library like spring boot to achieve that add in reminder list problem 😂. At first it was my bad after holding a offer of almost 27 lakh I somehow agreed for giving interview. Second thing I also know that after Even clearing they cannot afford 30LPA which I asked. I just went there because from last 6.5 year I have never attended any walking or face to face interview so was curious for it. Currently also working with somewhat premium product development company only. My experience was very bad. May be it can get vary person to person.
Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via Recruitment Consulltant and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Coding Test 

The first round was an interview conducted with a GENAI virtual bot.

Round 2 - One-on-one 

(2 Questions)

  • Q1. Internal architecture of Spring boot, how enable autoconfiguration works
  • Ans. 

    Spring Boot uses autoconfiguration to automatically configure the Spring application based on dependencies and properties.

    • Spring Boot autoconfiguration is achieved through @EnableAutoConfiguration annotation

    • Autoconfiguration classes are located in the org.springframework.boot.autoconfigure package

    • Autoconfiguration classes are conditionally applied based on the presence of specific classes or properties

  • Answered by AI
  • Q2. Questions mostly on microservices and coding question on restTemplate

Interview Preparation Tips

Topics to prepare for Wipro Senior Java Developer interview:
  • Java
  • Spring Boot
  • Microservices
  • REST API
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

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

Round 1 - One-on-one 

(3 Questions)

  • Q1. Difference between hashmap and hash table
  • Ans. 

    HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.

    • HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.

    • HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.

    • HashMap is generally preferred for non-thread-safe applications, while HashTable is used in mul

  • Answered by AI
  • Q2. Static block related questions
  • Q3. Arraylist and linkedlist question

Skills evaluated in this interview

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

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

Round 1 - Technical 

(9 Questions)

  • Q1. Transactions in springboot
  • Ans. 

    Transactions in Spring Boot manage database operations as a single unit of work to ensure data integrity.

    • Spring Boot provides support for declarative transaction management using @Transactional annotation.

    • Transactions can be configured at class or method level.

    • Transactions can be rolled back in case of exceptions to maintain data consistency.

    • Example: @Transactional annotation on a service method ensures that all databa...

  • Answered by AI
  • Q2. Difference between arraylist and linked list
  • Ans. 

    ArrayList is resizable array implementation, LinkedList is doubly linked list implementation.

    • ArrayList uses dynamic array to store elements, LinkedList uses doubly linked list.

    • ArrayList is faster for accessing elements by index, LinkedList is faster for adding/removing elements.

    • Example: ArrayList arrList = new ArrayList<>(); LinkedList linkedList = new LinkedList<>();

Answered by AI
  • Q3. How REST API used
  • Ans. 

    REST API is used to communicate between client and server using HTTP methods like GET, POST, PUT, DELETE.

    • REST API allows clients to access and manipulate resources on a server using standard HTTP methods.

    • It uses URLs to identify resources and HTTP methods to perform actions on those resources.

    • Common HTTP methods used in REST API are GET (retrieve data), POST (create data), PUT (update data), DELETE (remove data).

    • REST A...

  • Answered by AI
  • Q4. Annotations in springboot
  • Ans. 

    Annotations in Spring Boot are used to provide metadata about the application and its components.

    • Annotations are used to configure Spring Boot applications, define beans, handle requests, etc.

    • Examples include @SpringBootApplication, @RestController, @Autowired, @RequestMapping, etc.

  • Answered by AI
  • Q5. Features of java 8
  • Ans. 

    Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods in interfaces.

    • Lambda expressions allow for more concise code and enable functional programming.

    • Functional interfaces are interfaces with a single abstract method, used for lambda expressions.

    • Streams provide a way to work with collections of objects in a functional style.

    • Default methods in interfaces ...

  • Answered by AI
  • Q6. How interface is implemented in java
  • Ans. 

    Interfaces in Java are implemented using the 'implements' keyword, allowing classes to provide specific implementations for methods defined in the interface.

    • Interfaces in Java define a contract for classes to implement, specifying method signatures without implementations.

    • A class can implement multiple interfaces by separating them with commas.

    • Classes implementing an interface must provide concrete implementations for ...

  • Answered by AI
  • Q7. How stream API works
  • Ans. 

    Stream API in Java provides a way to process collections of objects in a functional style.

    • Stream API allows for functional-style operations on collections like map, filter, reduce, etc.

    • It supports lazy evaluation, meaning operations are only performed when needed.

    • Streams can be sequential or parallel, depending on the source and operations used.

  • Answered by AI
  • Q8. Benefits of springboot over spring
  • Ans. 

    Spring Boot simplifies the setup and development of Spring applications by providing a convention-over-configuration approach.

    • Spring Boot eliminates the need for XML configuration by using annotations and sensible defaults.

    • It includes embedded servers like Tomcat, Jetty, or Undertow, making it easy to deploy standalone applications.

    • Auto-configuration feature reduces the amount of boilerplate code needed to set up a Spr...

  • Answered by AI
  • Q9. Difference between throw and throwable
  • Ans. 

    throw is a keyword used to explicitly throw an exception, while Throwable is a class that serves as the base class for all exceptions in Java.

    • throw is used to throw an exception in a method, while Throwable is the superclass of all exceptions in Java.

    • throw is followed by an instance of Throwable class or its subclasses, while Throwable is a class that provides common methods for handling exceptions.

    • Example: throw new N...

  • Answered by AI

    Interview Preparation Tips

    Interview preparation tips for other job seekers - Try to speak about one topic of more time it will increase the time of interview.

    Skills evaluated in this interview

    Cognizant Interview FAQs

    How to prepare for Cognizant Java Technical Lead 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 Cognizant. The most common topics and skills that interviewers at Cognizant expect are Java, Microservices, AWS, Customer Relationship and Eclipse.
    What are the top questions asked in Cognizant Java Technical Lead interview?

    Some of the top questions asked at the Cognizant Java Technical Lead interview -

    1. Why we need 2 way S...read more
    2. What is the Controller Advi...read more
    3. How to group by in stre...read more

    Tell us how to improve this page.

    Interview Questions from Similar Companies

    TCS Interview Questions
    3.7
     • 10.4k Interviews
    Accenture Interview Questions
    3.8
     • 8.2k Interviews
    Infosys Interview Questions
    3.6
     • 7.6k Interviews
    Wipro Interview Questions
    3.7
     • 5.6k Interviews
    Capgemini Interview Questions
    3.7
     • 4.8k Interviews
    Tech Mahindra Interview Questions
    3.5
     • 3.8k Interviews
    HCLTech Interview Questions
    3.5
     • 3.8k Interviews
    Genpact Interview Questions
    3.8
     • 3.1k Interviews
    LTIMindtree Interview Questions
    3.8
     • 3k Interviews
    IBM Interview Questions
    4.0
     • 2.4k Interviews
    View all
    Cognizant Java Technical Lead Salary
    based on 19 salaries
    ₹9 L/yr - ₹30.2 L/yr
    At par with the average Java Technical Lead Salary in India
    View more details

    Cognizant Java Technical Lead Reviews and Ratings

    based on 2 reviews

    3.5/5

    Rating in categories

    3.0

    Skill development

    3.5

    Work-life balance

    3.0

    Salary

    4.1

    Job security

    4.1

    Company culture

    3.0

    Promotions

    3.5

    Work satisfaction

    Explore 2 Reviews and Ratings
    Associate
    72.2k salaries
    unlock blur

    ₹5.1 L/yr - ₹16 L/yr

    Programmer Analyst
    55.5k salaries
    unlock blur

    ₹2.4 L/yr - ₹9.6 L/yr

    Senior Associate
    48.5k salaries
    unlock blur

    ₹8.9 L/yr - ₹27.3 L/yr

    Senior Processing Executive
    28.9k salaries
    unlock blur

    ₹1.8 L/yr - ₹9 L/yr

    Technical Lead
    17.6k salaries
    unlock blur

    ₹5.9 L/yr - ₹24.2 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