i
Tech Mahindra
Filter interviews by
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Method reference is a shorthand syntax for lambda expressions in Java.
Method reference is more concise and readable than lambda expressions.
Method reference can be used to refer to static methods, instance methods, and constructors.
Lambda expressions are more flexible and can be used in situations where method reference is not applicable.
I applied via Naukri.com and was interviewed in Jul 2023. There were 3 interview rounds.
Array and String related question
What people are saying about Tech Mahindra
Tech Mahindra interview questions for designations
I applied via Referral and was interviewed in Dec 2023. There was 1 interview round.
Custom exception is a user-defined exception that extends the functionality of the built-in exceptions in Java.
Custom exceptions are created by extending the Exception class or one of its subclasses.
They allow developers to define their own exception types for specific scenarios.
Custom exceptions can include additional methods and fields to provide more information about the exception.
Example: public class CustomExcept...
Use a HashSet to find duplicate elements in an array of strings.
Create a HashSet to store unique elements.
Iterate through the array and check if the element is already in the HashSet.
If it is, then it is a duplicate element.
Example: String[] array = {"apple", "banana", "apple", "orange"};
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.
Aptitude is most imp past of interviews .
We should have clear the aptitude than go for the next level that is coding test
Coding is also most important part of all the candidates have good knowledge of all type codings
Some of the top questions asked at the Tech Mahindra Java Developer interview for experienced candidates -
The duration of Tech Mahindra Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 2 interviews
Interview experience
based on 54 reviews
Rating in categories
Hyderabad / Secunderabad,
Bangalore Rural
6-11 Yrs
₹ 6-16 LPA
Software Engineer
26.3k
salaries
| ₹2 L/yr - ₹9.1 L/yr |
Senior Software Engineer
21.3k
salaries
| ₹5.5 L/yr - ₹23.5 L/yr |
Technical Lead
11.6k
salaries
| ₹9.2 L/yr - ₹31.5 L/yr |
Associate Software Engineer
5.4k
salaries
| ₹1.8 L/yr - ₹6 L/yr |
Team Lead
4.9k
salaries
| ₹5.1 L/yr - ₹17 L/yr |
Infosys
Cognizant
Accenture
Wipro