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

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

5 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
asked in Amdocs
Q5. Why is Java considered platform-independent while the Java Virtua ... 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:
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 - 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

 (21)

 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 by Sarfraj Mulani
  • 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

Interview questions from similar companies

I was interviewed in Apr 2017.

Interview Questionnaire 

2 Questions

  • Q1. Java questions...
  • Q2. Tell me about urself and about us family and all
  • Ans. 

    I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.

    • Experienced software developer

    • Passionate about coding and problem-solving

    • Supportive family that encourages my career in tech

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: Easy questions are there
Duration: 1 hour
Total Questions: 90

Round: Group Discussion
Experience: 12 members are there only 9 got selected
Tips: Be confident in urself and specially work in Communication skills
Duration: 15 minutes

Round: Technical Interview
Experience: Asking all the concepts of Java like oops collections threads
Tips: Prepare well on Java

Round: HR Interview
Experience: Everything was Gud but due to my certificate problem I got rejected.. Otherwise everything is good.
Tips: Be confident

College Name: C. V. Raman College of Engineering

I was interviewed before Mar 2021.

Round 1 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

This was an easy round which went really smooth.

  • Q1. 

    Nth Fibonacci Number Problem Statement

    Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2), with initial conditions F(1) = F(2) = 1.

    Input:

    ...
  • Ans. 

    Calculate the Nth Fibonacci number efficiently using dynamic programming.

    • Use dynamic programming to store previously calculated Fibonacci numbers to avoid redundant calculations.

    • Start with base cases F(1) and F(2) as 1, then iteratively calculate F(n) using F(n-1) and F(n-2).

    • Ensure the input N is within the constraints 1 <= N <= 10000.

    • Example: For N = 5, the 5th Fibonacci number is 5 (1, 1, 2, 3, 5).

  • Answered by AI
  • Q2. 

    Prime Numbers Problem Statement

    Given a positive integer N, your task is to determine and return all prime numbers less than or equal to N.

    Input:

    N = 10

    Output:

    2 3 5 7

    Example:

    Input:
    N = 20
    Out...
  • Ans. 

    Implement a function to return all prime numbers less than or equal to a given positive integer N.

    • Create a function that takes a positive integer N as input

    • Iterate from 2 to N and check if each number is prime

    • Use a helper function to determine if a number is prime

    • Return an array of all prime numbers less than or equal to N

  • Answered by AI
  • Q3. What is a merge join in SQL?
  • Ans. 

    A merge join in SQL is a method of combining two sorted datasets by matching corresponding rows based on a specified condition.

    • Merge join is used when joining two large datasets that are already sorted.

    • It is more efficient than other join methods like nested loop join or hash join for sorted datasets.

    • The join condition must be an equality condition.

    • Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i

  • Answered by AI
Round 2 - HR 

Round duration - 30 minutes
Round difficulty - Easy

The round went excellent. I really enjoyed it. Just be confident about whatever you answer

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPALarsen & Toubro Infotech (LTI) interview preparation:Topics to prepare for the interview - Database, Basic C/C++, Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Mar 2021.

Round 1 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

This round went well. Interview depends on your basic knowledge of C/C++.

  • Q1. 

    Matrix Multiplication Task

    Given two sparse matrices MAT1 and MAT2 of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...

  • Ans. 

    Implement a function to multiply two sparse matrices and return the resulting matrix.

    • Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication

    • Iterate through the non-zero elements of the matrices to perform the multiplication efficiently

    • Handle the edge cases such as empty matrices or matrices with all zero elements

    • Ensure the dimensions of the matrices are compatible

  • Answered by AI
  • Q2. 

    Problem: Count Even or Odd in Array

    Tanmay and Rohit are best buddies. Tanmay gives Rohit a challenge involving an array of N natural numbers. The task is to perform and answer a series of queries on the ...

  • Ans. 

    Count the number of even or odd numbers in a range of an array based on given queries.

    • Create an array to store the input numbers.

    • Iterate through the queries and update or count even/odd numbers based on the query type.

    • Output the count of even or odd numbers for each query of type 1 or 2.

  • Answered by AI
Round 2 - HR 

Round duration - 30 minutes
Round difficulty - Easy

Typical HR round with behavioral problems.

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPALarsen & Toubro Infotech (LTI) interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Sep 2016.

Interview Preparation Tips

Round: Group Discussion
Experience: Interview was scheduled in Grab Job consultancy. In that, a class room, where we all asked to sit and interviewer was sitting in front and asked to speak one by one on the topic traffic situation in Hyderabad.
Tips: Just speak once two to three lines. Don't rush to speak. Take ur time and don't try speak repeatedly.
Duration: 35 minutes

Round: Technical Interview
Experience: System based test. Easy question from java , c, data structure.

Round: HR Interview
Experience: Not held because already we got too late.

Skills: Proficiency In English, Basic Coding
College Name: Medak College of engineering

I was interviewed in Mar 2017.

Interview Questionnaire 

5 Questions

  • Q1. Oops concepts in Java?
  • Ans. 

    Oops concepts in Java

    • Encapsulation - hiding implementation details

    • Inheritance - reusing code and creating parent-child relationships

    • Polymorphism - multiple forms of a method or object

    • Abstraction - creating abstract classes and interfaces

    • Example: Encapsulation - using private variables and public methods

    • Example: Inheritance - creating a subclass that inherits from a superclass

    • Example: Polymorphism - using method overloa...

  • Answered by AI
  • Q2. Altering columns in Databases?
  • Ans. 

    Altering columns in databases involves modifying the structure of a table by adding, deleting or modifying columns.

    • Use ALTER TABLE statement to modify columns

    • Add new columns using ADD COLUMN

    • Delete columns using DROP COLUMN

    • Modify columns using MODIFY COLUMN

    • Changing column data type may result in data loss

  • Answered by AI
  • Q3. Asked some queries in SQL
  • Q4. Reversing a number in java?
  • Ans. 

    Reversing a number in Java

    • Convert the number to a string

    • Use StringBuilder to reverse the string

    • Convert the reversed string back to a number

  • Answered by AI
  • Q5. Extracting words from a line in java?
  • Ans. 

    To extract words from a line in Java, split the line using whitespace as delimiter.

    • Use the split() method of String class

    • Pass the whitespace regex as argument to split() method

    • Iterate over the resulting array to get individual words

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: Started with the question "Tell me about yourself". Asked me about Core Java. Asked to solve some questions related to Java and SQL.
Tips: Be prepared with high knowledge in Java, Data Structures and SQL.

Skills: Java Programming, Data Strrutures, SQL
College Name: IIITDM Jabalpur

Skills evaluated in this interview

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 Hibernate.
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 64 salaries
₹7.1 L/yr - ₹26.5 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

Sr Java Developer_Gurgaon

Noida,

Gurgaon / Gurugram

+1

6-8 Yrs

₹ 8-18 LPA

Senior Java Developer

Delhi/Ncr,

Hyderabad / Secunderabad

+1

10-15 Yrs

Not Disclosed

Explore more jobs
Software Engineer
26.3k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Software Engineer
21.4k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Technical Lead
11.7k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Associate Software Engineer
5.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Team Lead
5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.7
Compare

Accenture

3.8
Compare

Wipro

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