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.6

based on 33.4k Reviews

Filter interviews by

Tech Mahindra Senior Java Software Engineer Interview Questions and Answers

Updated 15 Jul 2022

Tech Mahindra Senior Java Software Engineer Interview Experiences

1 interview found

I applied via Referral and was interviewed in Jan 2022. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Basic questions on microservices
  • Q2. Implementation of HashSet,remove duplicates, project related questions, Apache Kafka implementation,Basic questions on Strings and Oops concepts

Interview Preparation Tips

Interview preparation tips for other job seekers - Go through interview questions in java,springboot, microservices basics

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
Selected Selected
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 

(1 Question)

  • Q1. Core Java , advanced java
Round 3 - HR 

(1 Question)

  • Q1. Salary discussion

I applied via Naukri.com and was interviewed in Aug 2022. There were 3 interview rounds.

Round 1 - Technical 

(4 Questions)

  • Q1. What is java and how it is platform independent
  • Ans. 

    Java is a high-level programming language used to develop applications that can run on any platform.

    • Java code is compiled into bytecode that can run on any platform with a Java Virtual Machine (JVM)

    • JVM acts as an interpreter and translates bytecode into machine code

    • Java's platform independence is achieved through the 'Write Once, Run Anywhere' (WORA) principle

    • Java's standard library provides platform-independent APIs f

  • Answered by AI
  • Q2. What are new features in Java 8
  • Ans. 

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

    • Lambda expressions for functional programming

    • Streams for efficient processing of large data sets

    • Default methods for backward compatibility

    • Date and Time API for improved handling of date and time

    • Nashorn JavaScript engine for improved performance

    • Type annotations for improved type checking

    • Parallel array sorting for improved p...

  • Answered by AI
  • Q3. What is serialization in java
  • Ans. 

    Serialization is the process of converting an object into a stream of bytes to store or transmit it.

    • Serialization is used to save and restore object states

    • Java provides Serializable interface to implement serialization

    • Serialization can be used for inter-process communication and distributed systems

    • Deserialization is the process of converting a stream of bytes back into an object

    • Serialization can be customized using rea

  • Answered by AI
  • Q4. What is static variable
  • Ans. 

    Static variable is a variable that belongs to the class and not to the instance of the class.

    • Static variables are declared using the 'static' keyword.

    • They are initialized only once, at the start of the program.

    • They can be accessed using the class name, without creating an instance of the class.

    • Changes made to a static variable are reflected across all instances of the class.

    • Example: 'public static int count = 0;'

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. What is collections and why to use them in java
  • Ans. 

    Collections are a group of classes and interfaces used to store and manipulate groups of objects in Java.

    • Collections provide a way to store and manipulate groups of objects in Java

    • They offer various data structures like List, Set, Map, etc.

    • Collections provide methods to add, remove, and search for elements in the data structures

    • They also offer algorithms for sorting and searching elements

    • Examples include ArrayList, Has

  • Answered by AI
  • Q2. What is ResultSet in Java and why we should avoid it
  • Ans. 

    ResultSet is an interface in Java used to retrieve data from a database. It should be avoided due to its performance issues.

    • ResultSet is used to retrieve data from a database in Java

    • It has performance issues and should be avoided if possible

    • Alternative options like JPA or Hibernate can be used instead

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. Why you want to join Infosys
  • Q2. Tell me something about infosys

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare for questions thouroughly and learn concepts

Skills evaluated in this interview

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

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

Round 1 - Technical 

(3 Questions)

  • Q1. What are intermediate and terminal operations
  • Q2. Predefined functional interface
  • Q3. Ways to create Thread

Interview Preparation Tips

Interview preparation tips for other job seekers - It was moderate level of interview
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

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

Round 1 - Technical 

(11 Questions)

  • Q1. Internal working of HashMap
  • Q2. Features of java8
  • Q3. Use of synchronized keyword
  • Q4. Difference between failsafe and fail fast and also its implementation
  • Q5. Coding question : sort an array, use of streams to find names from employee object whose salary is greater than 50000
  • Q6. Difference between concurrent and generic collection
  • Q7. What is string pool. What is string literal?
  • Q8. Security measures used in your project
  • Q9. What is difference between rest and soap
  • Q10. What do u mean by REST state
  • Q11. What is serialization? What is the way to stop serialization?
Round 2 - Manegerial Round 

(4 Questions)

  • Q1. Difference between failsafe and faifast
  • Q2. Difference between concurrent and generic collection
  • Q3. Security measures used in current project
  • Q4. Why you are leaving your current organization and follow up questions on that

Interview Preparation Tips

Interview preparation tips for other job seekers - Please prepare well on your project and java 8 features(if you are using java8). also please brush up knowledge on collections, multithreading, and oops concept
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

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

Round 1 - Technical 

(6 Questions)

  • Q1. Java 8 , java 11 and java 17 features?
  • Ans. 

    Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.

    • Java 8 introduced lambda expressions for functional programming.

    • Java 11 added local-variable syntax for lambda parameters to simplify code.

    • Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.

  • Answered by AI
  • Q2. Dispatcher servlet, design patterns
  • Q3. @SpringbootApplication annotation, actuators
  • Q4. String Coding question with java 8 features such as lambda function and stream api
  • Q5. Number of words in a string
  • Ans. 

    Count the number of words in a given string.

    • Split the string by spaces and count the number of resulting elements.

    • Handle edge cases like multiple spaces or empty strings.

    • Consider punctuation marks as part of words unless specified otherwise.

  • Answered by AI
  • Q6. Microservice design patterns
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Walk-in and was interviewed in Nov 2024. There were 3 interview rounds.

Round 1 - Coding Test 

It's walkin, so they conducted 1 technical mcqs round.

Round 2 - Technical 

(11 Questions)

  • Q1. Multi threading
  • Q2. Internal working of hashmap
  • Ans. 

    HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.

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

    • Keys are hashed to determine the index in the array where the key-value pair will be stored.

    • In case of hash collisions, a linked list or a balanced tree is used to store multiple key-value pairs in the same bucket.

    • HashMap allows null keys...

  • Answered by AI
  • Q3. Spring batch related
  • Q4. Non repeating characters in a array
  • Ans. 

    Function to find and return all non-repeating characters in an array of strings.

    • Iterate through the array and count the occurrences of each character using a HashMap.

    • Then iterate through the array again and check if the count of each character is 1, if so add it to the result list.

    • Return the list of non-repeating characters.

  • Answered by AI
  • Q5. 3rd highest salary
  • Ans. 

    To find the 3rd highest salary in a database, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.

    • Use a SQL query with 'ORDER BY salary DESC' to sort the salaries in descending order.

    • Use 'LIMIT 1 OFFSET 2' to skip the first two highest salaries and retrieve the third highest salary.

    • Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2;

  • Answered by AI
  • Q6. Qualifier vs primary
  • Ans. 

    A qualifier in Java is used to specify additional information about a primary, which is the main data type or variable.

    • A primary in Java is the main data type or variable, while a qualifier provides additional information about the primary.

    • Qualifiers can be used to modify the behavior or characteristics of a primary.

    • For example, in Java, 'final' is a qualifier that can be used to make a variable constant.

  • Answered by AI
  • Q7. Controller vs restcontroller
  • Ans. 

    The main difference is that @RestController is a specialized version of @Controller that is used for RESTful web services.

    • Both @Controller and @RestController are used in Spring MVC to handle HTTP requests, but @RestController is specifically used for RESTful web services.

    • @Controller is used to create web pages, while @RestController is used to return data in JSON or XML format.

    • @RestController is a convenience annotati...

  • Answered by AI
  • Q8. Spring boot annotataions
  • Q9. Oops concepts with examples
  • Ans. 

    OOP concepts include inheritance, encapsulation, polymorphism, and abstraction.

    • Inheritance: Allows a class to inherit properties and behavior from another class. Example: class Dog extends Animal.

    • Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.

    • Polymorphism: Ability for objects to be treated as instances of their paren...

  • Answered by AI
  • Q10. Spring batch configuration
  • Q11. They covered all java, spring and Microservices
Round 3 - Technical 

(4 Questions)

  • Q1. Microservices architecture
  • Q2. How do Microservices communicate
  • Ans. 

    Microservices communicate with each other through various communication protocols like HTTP, messaging queues, and gRPC.

    • Microservices can communicate over HTTP using RESTful APIs.

    • Messaging queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.

    • gRPC is a high-performance, open-source RPC framework that can be used for communication between microservices.

    • Service discovery mechanism...

  • Answered by AI
  • Q3. How to access the Microservice end point
  • Ans. 

    Microservice endpoints can be accessed using HTTP requests with the appropriate URL

    • Use HTTP methods like GET, POST, PUT, DELETE to interact with the microservice

    • Construct the URL with the base URL of the microservice and the specific endpoint path

    • Include any necessary headers or parameters in the request for authentication or data filtering

  • Answered by AI
  • Q4. Why we use microservices
  • Ans. 

    Microservices allow for modular, scalable, and flexible software development by breaking down applications into smaller, independent services.

    • Microservices enable easier maintenance and updates as each service can be developed, deployed, and scaled independently.

    • They improve fault isolation, as failures in one service do not necessarily affect the entire application.

    • Microservices promote agility and faster time-to-mark...

  • Answered by AI

Skills evaluated in this 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
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

Tech Mahindra Interview FAQs

How many rounds are there in Tech Mahindra Senior Java Software Engineer interview?
Tech Mahindra interview process usually has 1 rounds. The most common rounds in the Tech Mahindra interview process are Technical.
What are the top questions asked in Tech Mahindra Senior Java Software Engineer interview?

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

  1. Implementation of HashSet,remove duplicates, project related questions, Apache ...read more
  2. Basic questions on microservi...read more

Tell us how to improve this page.

People are getting interviews through

based on 1 Tech Mahindra interview
Referral
100%
Low Confidence
?
Low Confidence means the data is based on a small number of responses received from the candidates.

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.1k Interviews
Accenture Interview Questions
3.9
 • 7.9k Interviews
Infosys Interview Questions
3.7
 • 7.4k Interviews
Wipro Interview Questions
3.7
 • 5.5k Interviews
Cognizant Interview Questions
3.8
 • 5.5k Interviews
Capgemini Interview Questions
3.8
 • 4.7k Interviews
HCLTech Interview Questions
3.5
 • 3.7k Interviews
Genpact Interview Questions
3.9
 • 3k Interviews
LTIMindtree Interview Questions
3.9
 • 2.8k Interviews
IBM Interview Questions
4.1
 • 2.3k Interviews
View all
Tech Mahindra Senior Java Software Engineer Salary
based on 5 salaries
₹9.6 L/yr - ₹21.2 L/yr
19% more than the average Senior Java Software Engineer Salary in India
View more details
Software Engineer
26.4k salaries
unlock blur

₹2 L/yr - ₹9 L/yr

Senior Software Engineer
21.2k salaries
unlock blur

₹5.4 L/yr - ₹22.7 L/yr

Technical Lead
11.5k salaries
unlock blur

₹9.2 L/yr - ₹37 L/yr

Associate Software Engineer
5.2k salaries
unlock blur

₹1.8 L/yr - ₹6 L/yr

Team Lead
4.9k salaries
unlock blur

₹5.1 L/yr - ₹16.8 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.7
Compare

Cognizant

3.8
Compare

Accenture

3.9
Compare

Wipro

3.7
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview