Upload Button Icon Add office photos
Engaged Employer

i

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

Tech Mahindra Verified Tick

Compare button icon Compare button icon Compare
3.5

based on 34.1k Reviews

Filter interviews by

Tech Mahindra Senior Java Developer Interview Questions, Process, and Tips

Updated 10 Sep 2024

Top Tech Mahindra Senior Java Developer Interview Questions and Answers

View all 6 questions

Tech Mahindra Senior Java Developer Interview Experiences

6 interviews found

Senior Java Developer Interview Questions & Answers

user image Abhishek Tamakuwala

posted on 10 Sep 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is final and finally
  • Ans. 

    final is a keyword in Java used to declare constants, while finally is a block used in exception handling to ensure code is executed regardless of an exception.

    • final keyword is used to declare constants in Java

    • final variables cannot be reassigned once initialized

    • finally block is used in exception handling to ensure code is executed regardless of an exception

    • finally block is often used to release resources like closing

  • Answered by AI
  • Q2. Brief description about the last project
  • Ans. 

    Developed a web application for a financial institution to manage customer accounts and transactions.

    • Used Java Spring framework for backend development

    • Implemented RESTful APIs for communication between frontend and backend

    • Utilized Hibernate for database interaction

    • Integrated third-party payment gateway for transactions

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(1 Question)

  • Q1. What is flatMap in java 8?
  • Ans. 

    flatMap in Java 8 is a method used to transform each element of a stream into another stream and then concatenate all the streams into a single stream.

    • flatMap is used to flatten nested collections in streams.

    • It is commonly used with streams of collections or arrays.

    • Example: List> list = Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3, 4)); list.stream().flatMap(Collection::stream).forEach(System.out::println);

Answered by AI

Skills evaluated in this interview

Senior Java Developer Interview Questions Asked at Other Companies

asked in Amdocs
Q1. Remove the Kth Node from the End of a Linked List You are given a ... read more
asked in Amdocs
Q2. Intersection of Linked List Problem You are provided with two sin ... read more
asked in Amdocs
Q3. Merge Two Sorted Linked Lists Problem Statement You are provided ... read more
asked in Amdocs
Q4. LRU Cache Design Question Design a data structure for a Least Rec ... read more
Q5. When to use abstract class and when should we use interfaces in J ... read more
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Jun 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Medium level Strings and Array questions

Round 3 - Technical 

(2 Questions)

  • Q1. Find LCA of a node in BST
  • Ans. 

    LCA of a node in BST is the lowest common ancestor of two nodes in a binary search tree.

    • Traverse the BST from the root node to find the LCA of the given nodes.

    • Compare the values of the nodes with the current node to determine the LCA.

    • If one node is on the left subtree and the other is on the right subtree, the current node is the LCA.

  • Answered by AI
  • Q2. Optimise the above solution
  • Ans. 

    Optimize the solution by using efficient data structures and algorithms.

    • Use HashMap instead of ArrayList for faster lookup

    • Implement caching to store previously calculated results

    • Consider using multithreading for parallel processing

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Good DSA is required

Skills evaluated in this interview

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

I applied via LinkedIn and was interviewed in Feb 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. In java How hasmap works internally
  • Ans. 

    HashMap is a data structure that stores key-value pairs and uses hashing to retrieve values.

    • HashMap uses an array of buckets to store key-value pairs

    • The hash code of the key is used to determine the index of the bucket

    • If multiple keys have the same hash code, they are stored in a linked list within the bucket

    • HashMap allows null keys and values

    • HashMap is not thread-safe and requires synchronization for concurrent access

  • Answered by AI
  • Q2. Write program in java to print even no by one thread and odd no by another thread
  • Ans. 

    Program to print even and odd numbers using two threads in Java

    • Create two threads, one for even numbers and one for odd numbers

    • Use a loop to generate numbers and check if they are even or odd

    • Print the numbers using the respective threads

    • Use synchronization to ensure alternate printing of even and odd numbers

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - keep learning new technologies, which will help you in interview.

Skills evaluated in this interview

Tech Mahindra interview questions for designations

 Java Developer

 (26)

 Java Software Developer

 (3)

 Java J2ee Developer

 (1)

 Java Spring Developer

 (1)

 Java Trainer & Developer

 (1)

 Fullstack Java Developer

 (1)

 Java Trainee

 (1)

 Senior Developer

 (3)

I applied via Walk-in and was interviewed before Apr 2021. There was 1 interview round.

Round 1 - HR 

(6 Questions)

  • Q1. What are your salary expectations?
  • Ans. 

    Starting as 25,000 in my hands

  • Answered Anonymously
  • Q2. What is your family background?
  • Q3. Share details of your previous job.
  • Q4. What are your strengths and weaknesses?
  • Q5. Tell me about yourself.
  • Q6. Why should we hire you?

Interview Preparation Tips

Topics to prepare for Tech Mahindra Senior Java Developer interview:
  • Core Java
  • Advanced Java
Interview preparation tips for other job seekers - I have need for a job. Also I have prove to itself

Get interview-ready with Top Tech Mahindra Interview Questions

Senior Java Developer interview

user image AG Tech

posted on 16 Nov 2021

Senior Java Developer Jobs at Tech Mahindra

View all

Interview questions from similar companies

Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

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

Round 1 - Technical 

(3 Questions)

  • Q1. Core Java questions and multithreading basics like executor service
  • Q2. Spring boot error handling, simple questions on distributed systems
  • Q3. Coding question. Requested to do in O(n ) time complexity as oppsed to O(n2) suggested by me.
Round 2 - Technical 

(2 Questions)

  • Q1. Given an array find all the numbers whose sum is 11 using streams only
  • Q2. Spring boot basics, hibernate queries, what is native query
Round 3 - Technical 

(2 Questions)

  • Q1. Design patterns in Java, write a singleton class
  • Q2. Spring IOC and AOP

Interview Preparation Tips

Interview preparation tips for other job seekers - The first 2 rounds were good and interviewer were also good. But there were 2 people who were taking the interview with the agenda to reject me. Didn't give me time to think on anything. Pointed error in my code which afterwards checked was perfectly fine. Haven't heard back on the feedback afte the third interview.
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - Technical 

(4 Questions)

  • Q1. Given an array {1, 2, 1, 4, 5, 4, 8, 7}, how can you use Streams to remove duplicates while retaining only the even numbers?
  • Ans. 

    Use Streams to remove duplicates and retain only even numbers from an array.

    • Convert the array to a stream using Arrays.stream()

    • Use distinct() to remove duplicates

    • Filter out odd numbers using filter()

    • Collect the result using collect(Collectors.toList())

  • Answered by AI
  • Q2. What is the use of Static and final when you will use Static methods
  • Ans. 

    Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.

    • Static methods belong to the class itself, not to any specific instance

    • Final keyword ensures that the method cannot be overridden in subclasses

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

    • Example: Math class in Java has static methods like Ma

  • Answered by AI
  • Q3. What is the difference between @restController and @controller Annotation
  • Ans. 

    The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.

    • RestController is a specialized version of Controller used for RESTful web services

    • RestController eliminates the need for @ResponseBody annotation

    • Controller is used for traditional MVC controller functionality

    • RestController returns data directly without needing to go through a view resolve...

  • Answered by AI
  • Q4. What is microservices why we use it
  • Ans. 

    Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.

    • Microservices allow for easier scalability and maintenance of complex applications.

    • Each service in a microservices architecture can be developed, deployed, and scaled independently.

    • Microservices promote flexibility and agility in software development.

    • Examples of companies us...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Senior Java Developer interview:
  • Java SpringBoot
Interview preparation tips for other job seekers - Need to have strong knowledge on basics Java Spring boot and Microservices
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Oct 2024. There were 2 interview rounds.

Round 1 - Technical 

(4 Questions)

  • Q1. Project related questions, architecture, exception handling, Kafka use case.
  • Q2. Oops question functional interface, marker interface.
  • Q3. Memory leaks and how to avoid the same.
  • Ans. 

    Memory leaks occur when a program allocates memory but does not release it, leading to inefficient memory usage.

    • Use tools like profilers to identify memory leaks in Java applications.

    • Avoid creating unnecessary objects and ensure proper garbage collection.

    • Avoid static references to objects that can prevent them from being garbage collected.

    • Close resources like files, database connections, and streams after use to preven

  • Answered by AI
  • Q4. Multi threading question
Round 2 - Technical 

(3 Questions)

  • Q1. Pom related questions how many scope available.
  • Q2. Agile related questions
  • Q3. Comparable vs comparator
  • Ans. 

    Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering.

    • Comparable is implemented by the class itself to define the natural ordering of objects.

    • Comparator is implemented by a separate class to define custom ordering of objects.

    • Example: String class implements Comparable interface for natural ordering, while Collections class uses Comparator for custom sorting.

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Discussion regarding normal process followed. Basic java questions about java 8. Technology and framework used. Interview was for Telecom domain.
  • Q2. Sorting, filtering, Exception handling questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Good decision just they wanted to know what you know then asked questions

Tech Mahindra Interview FAQs

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

Some of the top questions asked at the Tech Mahindra Senior Java Developer interview -

  1. write program in java to print even no by one thread and odd no by another thre...read more
  2. In java How hasmap works interna...read more
  3. What is flatMap in java...read more

Tell us how to improve this page.

Tech Mahindra Senior Java Developer Interview Process

based on 4 interviews

Interview experience

4
  
Good
View more
Tech Mahindra Senior Java Developer Salary
based on 71 salaries
₹6.5 L/yr - ₹23 L/yr
At par with the average Senior Java Developer Salary in India
View more details

Tech Mahindra Senior Java Developer Reviews and Ratings

based on 3 reviews

4.5/5

Rating in categories

4.5

Skill development

4.5

Work-life balance

4.5

Salary

4.5

Job security

4.5

Company culture

4.5

Promotions

4.5

Work satisfaction

Explore 3 Reviews and Ratings
Senior Java Developer

Chennai

4-6 Yrs

Not Disclosed

Senior Java Developer

Delhi/Ncr,

Hyderabad / Secunderabad

+1

10-15 Yrs

Not Disclosed

Explore more jobs
Software Engineer
26.4k salaries
unlock blur

₹2 L/yr - ₹9 L/yr

Senior Software Engineer
21.3k salaries
unlock blur

₹5.5 L/yr - ₹23.1 L/yr

Technical Lead
11.6k salaries
unlock blur

₹9.2 L/yr - ₹37 L/yr

Associate Software Engineer
5.5k salaries
unlock blur

₹1.8 L/yr - ₹6 L/yr

Team Lead
4.9k salaries
unlock blur

₹5.2 L/yr - ₹17 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.8
Compare

Accenture

3.9
Compare

Wipro

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