Tech Mahindra
Multinational IT services and consulting company.
4 Rounds
~21 Days
Medium
The Interview Loop
Recruiter Screen (30 min)
Standard fit check, behavioral questions, and resume overview.
Technical Loop (3-4 Rounds)
Deep dive into domain knowledge, coding, and system design.
Interview Question Bank
Software Engineer
•
Behavioral
•
medium
Tell me about a time you had a disagreement with a client regarding a technical requirement. How did you resolve it?
#Communication
#Conflict Resolution
#Consulting
Software Engineer
•
Behavioral
•
easy
How do you handle a situation where you are assigned a technology stack you have no prior experience with?
#Learning
#Flexibility
Software Engineer
•
Behavioral
•
medium
Describe a time when you had to deliver a critical project under a very tight deadline.
#Pressure
#Delivery
#Prioritization
Software Engineer
•
Behavioral
•
easy
Why do you want to join Tech Mahindra, and how do you align with our focus on IT consulting and telecom?
#Company Knowledge
#Motivation
Software Engineer
•
Coding
•
easy
Write a program to reverse a string without using any inbuilt functions like reverse().
#Strings
#Loops
Software Engineer
•
Coding
•
medium
Find the second highest number in an integer array in a single pass.
#Arrays
#Optimization
Software Engineer
•
Coding
•
medium
Write a Java 8 Stream API query to find the first non-repeating character in a given string.
#Java 8
#Streams
#Strings
Software Engineer
•
Coding
•
medium
Implement a thread-safe Singleton design pattern in Java.
#Core Java
#Multithreading
#Design Patterns
Software Engineer
•
Coding
•
medium
Given an array of integers, find the contiguous subarray with the maximum sum (Kadane's Algorithm).
#Arrays
#Dynamic Programming
Software Engineer
•
Coding
•
medium
Write a program to detect a loop in a LinkedList.
#LinkedList
#Pointers
Software Engineer
•
Coding
•
hard
Merge two sorted arrays without using extra space.
#Arrays
#Sorting
#Optimization
Software Engineer
•
Coding
•
medium
Group a list of strings by their length using Java 8 Streams.
#Java 8
#Streams
#Collections
Software Engineer
•
Coding
•
easy
Write a Java program to check if two strings are anagrams of each other.
#Strings
#Hashing
#Sorting
Software Engineer
•
System Design
•
hard
Design a microservices architecture for a Telecom Billing System.
#Microservices
#Telecom Domain
#Scalability
Software Engineer
•
System Design
•
hard
Explain the Saga design pattern for distributed transactions in microservices.
#Microservices
#Transactions
#Architecture
Software Engineer
•
System Design
•
hard
How do you ensure high availability and fault tolerance in a Spring Boot microservices ecosystem?
#Microservices
#Resilience
#Cloud
Software Engineer
•
System Design
•
hard
How would you implement rate limiting for a public-facing API?
#API Gateway
#Security
#Algorithms
Software Engineer
•
System Design
•
hard
Design a URL Shortener service like Bitly.
#Scalability
#Hashing
#Database
Software Engineer
•
Technical
•
medium
Explain CI/CD. How would you set up a basic Jenkins pipeline for a Spring Boot application?
#Jenkins
#CI/CD
#Deployment
Software Engineer
•
Technical
•
medium
Explain the internal working of a HashMap in Java. What changes were introduced in Java 8?
#Collections
#Data Structures
#Hashing
Software Engineer
•
Technical
•
medium
What is the difference between ConcurrentHashMap and Collections.synchronizedMap()?
#Multithreading
#Collections
Software Engineer
•
Technical
•
medium
Write a SQL query to find the nth highest salary of an employee from the Employee table.
#Database
#Queries
#Window Functions
Software Engineer
•
Technical
•
easy
Explain the difference between @Controller and @RestController in Spring Boot.
#Spring MVC
#Annotations
Software Engineer
•
Technical
•
medium
How do you handle exceptions globally in a Spring Boot application?
#Exception Handling
#AOP
Software Engineer
•
Technical
•
medium
What is the N+1 select problem in Hibernate/JPA, and how do you resolve it?
#Hibernate
#JPA
#Performance
Software Engineer
•
Technical
•
medium
Write a SQL query to fetch all duplicate records from a table.
#Database
#Queries
#Aggregation
Software Engineer
•
Technical
•
medium
How do you secure a REST API? Explain JWT token-based authentication.
#REST
#JWT
#Spring Security
Software Engineer
•
Technical
•
medium
What are clustered and non-clustered indexes in SQL?
#Database
#Indexing
#Performance
Software Engineer
•
Technical
•
medium
Explain the SOLID principles with real-world Java examples.
#OOP
#Design Principles
Software Engineer
•
Technical
•
medium
What is Spring Boot Actuator and why is it used in production environments?
#Monitoring
#DevOps
Software Engineer
•
Technical
•
medium
What is the difference between @Autowired and Constructor injection? Which is recommended?
#Dependency Injection
#Best Practices
Software Engineer
•
Technical
•
medium
Explain the Bean lifecycle in the Spring framework.
#Core Spring
#Lifecycle
Software Engineer
•
Technical
•
easy
What is the difference between an Abstract Class and an Interface in Java 8?
#OOP
#Java 8
Software Engineer
•
Technical
•
easy
Explain the difference between TRUNCATE, DELETE, and DROP in SQL.
#Database
#DDL
#DML
Software Engineer
•
Technical
•
medium
How does Garbage Collection work in Java? What are the different types of Garbage Collectors?
#JVM
#Memory Management
Difficulty Radar
Based on recent AI-sourced data.
Meet Your Interviewers
The "Standard" Interviewer
Senior EngineerFocuses on core competencies, system constraints, and clear communication.
SimulateUnwritten Rules
Think Out Loud
Always explain your thought process before writing code or drawing architecture.