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

Filter interviews by

Tech Mahindra Software Engineer2 Interview Questions and Answers

Updated 28 Sep 2024

Tech Mahindra Software Engineer2 Interview Experiences

1 interview found

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

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

Round 1 - Technical 

(1 Question)

  • Q1. Daemon thread in java
  • Ans. 

    Daemon thread is a low priority thread that runs in the background and does not prevent the JVM from exiting.

    • Daemon threads are used for tasks that do not require user interaction or continuous execution.

    • They are automatically terminated when all non-daemon threads have finished.

    • Set a thread as daemon using setDaemon(true) method before starting it.

    • Example: Thread t = new Thread(); t.setDaemon(true); t.start();

  • Answered by AI

Skills evaluated in this interview

Interview questions from similar companies

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

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

Round 1 - Technical 

(2 Questions)

  • Q1. Difference between SQL and NoSQL databases?
  • Q2. What are the methods for enabling communication between microservices?
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

Basic aptitude questions based on profit and loss

Round 2 - Coding Test 

Coding test based on c language and python programming

Round 3 - Assignment 

Communication assignment based on English

Round 4 - Technical 

(2 Questions)

  • Q1. Self introduction
  • Q2. Difine real time operation system
  • Ans. 

    Real-time operating systems are designed to provide guaranteed response times for critical tasks.

    • Real-time operating systems prioritize tasks based on their urgency and importance.

    • They are commonly used in industries such as aerospace, automotive, and industrial automation.

    • Examples include VxWorks, QNX, and FreeRTOS.

  • Answered by AI
Round 5 - HR 

(2 Questions)

  • Q1. Self introduction
  • Q2. Project work questions

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Mar 2023. There were 2 interview rounds.

Round 1 - Technical 

(4 Questions)

  • Q1. Java Basics Technical Questions
  • Q2. In depth knowledge OOPS concepts and basic practice skills of SQL operations
  • Q3. In depth practice of String Manipulations using looping and conditional statements
  • Ans. 

    String manipulation using loops and conditionals for software engineering

    • Use loops to iterate through each character in the string

    • Use conditional statements to check for specific conditions and manipulate the string accordingly

    • Examples: reversing a string, counting occurrences of a specific character, removing whitespace

  • Answered by AI
  • Q4. In depth knowledge of J2ee concepts with any ORM / MVC framework skills
Round 2 - Technical 

(1 Question)

  • Q1. Java Basics Technical Questions

I applied via Naukri.com and was interviewed in Jan 2022. 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 - Case Study 

They just asked about my previous experience and questions from my resume

Round 3 - Technical 

(1 Question)

  • Q1. Bsod , how to handle angry customer ,

Interview Preparation Tips

Interview preparation tips for other job seekers - Be calm and confident.
They will just your potential.
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

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

Round 1 - Technical 

(16 Questions)

  • Q1. What are custom hooks in React, and what are their use cases? Additionally, can you provide an example of a custom hook that performs an API call and utilizes the retrieved data?
  • Ans. 

    Custom hooks in React are reusable functions that allow you to extract component logic into separate functions for better code organization and reusability.

    • Custom hooks are created using the 'use' prefix and can be used to share logic between components.

    • Use cases for custom hooks include fetching data from an API, handling form state, managing local storage, and more.

    • Example of a custom hook for API call: const useFetc...

  • Answered by AI
  • Q2. What is the difference between useMemo and useCallback in React?
  • Ans. 

    useMemo is used to memoize a value, while useCallback is used to memoize a function.

    • useMemo is used to memoize a value and recompute it only when its dependencies change.

    • useCallback is used to memoize a callback function and prevent unnecessary re-renders.

    • Example: useMemo can be used to memoize the result of a complex computation, while useCallback can be used to memoize an event handler function.

  • Answered by AI
  • Q3. What is the difference between class-based components and functional components in React?
  • Ans. 

    Class-based components use ES6 classes and have lifecycle methods, while functional components are simpler and use functions.

    • Class-based components use ES6 classes to create components, while functional components are created using functions.

    • Class-based components have lifecycle methods like componentDidMount and componentDidUpdate, while functional components do not.

    • Functional components are simpler and more lightweig...

  • Answered by AI
  • Q4. How can you implement the lifecycle of a React component in a functional component?
  • Ans. 

    Implementing the lifecycle of a React component in a functional component

    • Use the useEffect hook to replicate lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount

    • Pass an empty array as the second argument to useEffect to mimic componentDidMount

    • Pass a variable or state as the second argument to useEffect to mimic componentDidUpdate

    • Return a cleanup function inside useEffect to mimic compo

  • Answered by AI
  • Q5. What are the various state management techniques available in React?
  • Ans. 

    Various state management techniques in React include Context API, Redux, and local state.

    • Context API: React's built-in solution for passing data through the component tree without having to pass props down manually at every level.

    • Redux: A popular state management library for React applications, allowing for a centralized store to manage application state.

    • Local state: Managing state within individual components using us

  • Answered by AI
  • Q6. What is the architecture of Redux, and what purposes do middlewares serve within it?
  • Ans. 

    Redux is a predictable state container for JavaScript apps. Middlewares are functions that intercept actions before they reach the reducer.

    • Redux follows a unidirectional data flow architecture.

    • Middlewares in Redux are functions that can intercept, modify, or dispatch actions.

    • Common use cases for middlewares include logging, asynchronous API calls, and handling side effects.

    • Examples of popular Redux middlewares are Redu...

  • Answered by AI
  • Q7. What is hoisting in JavaScript?
  • Ans. 

    Hoisting in JavaScript is the behavior where variable and function declarations are moved to the top of their containing scope during the compilation phase.

    • Variable declarations are hoisted to the top of their scope, but not their initializations.

    • Function declarations are fully hoisted, meaning they can be called before they are declared.

    • Hoisting can lead to unexpected behavior if not understood properly.

  • Answered by AI
  • Q8. What is event bubbling in JavaScript?
  • Ans. 

    Event bubbling is the propagation of events from the target element up through its ancestors in the DOM tree.

    • Events triggered on a child element will 'bubble up' and trigger on parent elements.

    • Event listeners can be attached to parent elements to handle events from multiple child elements.

    • Stopping event propagation can be done using event.stopPropagation() or event.stopImmediatePropagation().

  • Answered by AI
  • Q9. What are block scope and function scope in JavaScript?
  • Ans. 

    Block scope and function scope are two types of scopes in JavaScript that determine the visibility and accessibility of variables.

    • Block scope refers to the visibility of variables within a block of code enclosed by curly braces. Variables declared with 'let' and 'const' have block scope.

    • Function scope refers to the visibility of variables within a function. Variables declared with 'var' have function scope.

    • Variables de...

  • Answered by AI
  • Q10. Have you had experience working with semantic tags in HTML?
  • Ans. 

    Yes, I have experience working with semantic tags in HTML.

    • Used semantic tags like <header>, <nav>, <main>, <section>, <article>, <aside>, <footer> for better structure and SEO.

    • Understand the importance of using semantic tags for accessibility and search engine optimization.

    • Semantic tags help in organizing content and making it more readable for developers and browsers.

  • Answered by AI
  • Q11. What are the various methods for creating an object in JavaScript?
  • Ans. 

    Various methods for creating an object in JavaScript include object literals, constructor functions, ES6 classes, and Object.create() method.

    • Object literals: var obj = { key: value };

    • Constructor functions: function ObjectName() { this.key = value; } var obj = new ObjectName();

    • ES6 classes: class ClassName { constructor() { this.key = value; } } var obj = new ClassName();

    • Object.create() method: var obj = Object.create(pr

  • Answered by AI
  • Q12. What are the differences between shallow copy and deep copy in JavaScript?
  • Ans. 

    Shallow copy only copies the references of nested objects, while deep copy creates new copies of nested objects.

    • Shallow copy creates a new object but does not create copies of nested objects, only copies their references.

    • Deep copy creates a new object and also creates new copies of all nested objects.

    • Shallow copy can be achieved using Object.assign() or spread operator, while deep copy can be achieved using JSON.parse(

  • Answered by AI
  • Q13. What will be the output of the following JavaScript code fragment: `const a; function test() { console.log(a); }; test();`?
  • Ans. 

    The code will throw an error because 'a' is declared but not initialized.

    • The code will result in a ReferenceError because 'a' is declared but not assigned a value.

    • Variables declared with 'const' must be initialized at the time of declaration.

    • Initializing 'a' with a value before calling test() will prevent the error.

  • Answered by AI
  • Q14. How can you use CSS to arrange elements in a row and column layout?
  • Ans. 

    CSS can be used to arrange elements in a row and column layout using flexbox or grid layout properties.

    • Use display: flex; for a row layout and display: flex; flex-direction: column; for a column layout

    • Use justify-content and align-items properties to align items in the main axis and cross axis respectively

    • For grid layout, use display: grid; and grid-template-columns or grid-template-rows to define the layout

  • Answered by AI
  • Q15. Have you utilized CSS preprocessors, and if so, which ones?
  • Ans. 

    Yes, I have utilized CSS preprocessors such as SASS and LESS.

    • I have experience using SASS to streamline my CSS workflow by utilizing variables, mixins, and nesting.

    • I have also worked with LESS to improve code organization and maintainability through features like variables and functions.

  • Answered by AI
  • Q16. If I have assigned different colors to an ID and a class and applied both to the same element, which color will be applied based on CSS specificity precedence?
  • Ans. 

    The color applied will be based on the specificity of the selector, with ID having higher specificity than class.

    • ID has higher specificity than class in CSS

    • Color applied will be based on the selector with higher specificity

    • Example: If ID selector has color red and class selector has color blue, the color applied will be red

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Senior Software Engineer interview:
  • Javascript
  • React.Js
  • HTML
  • CSS
Interview preparation tips for other job seekers - Possessing a deep understanding of JavaScript and React is essential. Interviewers may engage in mind games with candidates; therefore, we should remain calm and focused solely on the questions. Additionally, we need to be confident in our answers; otherwise, they may respond with doubt, asking, "Is that so?"

Skills evaluated in this interview

Software Engineer Interview Questions & Answers

TCS user image Sai Kowshik Nandigam

posted on 15 Jan 2025

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(5 Questions)

  • Q1. What's return statement in java
  • Ans. 

    The return statement in Java is used to explicitly return a value from a method.

    • The return statement is followed by the value that is to be returned from the method.

    • It can only be used within a method body.

    • Once a return statement is executed, the control is transferred back to the caller of the method.

  • Answered by AI
  • Q2. What are get set methods
  • Ans. 

    Get set methods are used in object-oriented programming to retrieve and update the values of private variables.

    • Get methods are used to retrieve the value of a private variable.

    • Set methods are used to update the value of a private variable.

    • They are commonly used to ensure data encapsulation and control access to class variables.

  • Answered by AI
  • Q3. What is the difference between an interface and an abstract class in Java?
  • Ans. 

    Interface is a contract specifying methods that a class must implement, while abstract class can have both implemented and abstract methods.

    • Interface cannot have method implementations, while abstract class can have both implemented and abstract methods.

    • A class can implement multiple interfaces but can only extend one abstract class.

    • Interfaces are used to achieve multiple inheritance in Java.

    • Abstract classes can have c...

  • Answered by AI
  • Q4. How do you implement a stack in Java using an array?
  • Ans. 

    Implement a stack in Java using an array

    • Create an array to store the elements of the stack

    • Keep track of the top of the stack using an index variable

    • Implement push() to add elements to the stack

    • Implement pop() to remove elements from the stack

    • Example: String[] stackArray = new String[10];

  • Answered by AI
  • Q5. What is the difference between a HashMap and a TreeMap in Java?
  • Ans. 

    HashMap is unordered and uses hashing to store key-value pairs, while TreeMap is ordered and uses a red-black tree to store key-value pairs.

    • HashMap uses hashing to store key-value pairs, allowing for O(1) time complexity for get and put operations.

    • TreeMap uses a red-black tree to store key-value pairs, maintaining order based on the keys.

    • HashMap does not guarantee any specific order of elements, while TreeMap maintains...

  • Answered by AI
Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

It was good . 3 question

Round 2 - Coding Test 

It was hard, 5 questions

Round 3 - Technical 

(4 Questions)

  • Q1. Face to Face interview .
  • Q2. Java basic question
  • Q3. Java question directly start with hard coding question
  • Q4. Not asking self introduction or anything related past company
Round 4 - HR 

(1 Question)

  • Q1. NA i am not selected
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Oct 2024. There were 4 interview rounds.

Round 1 - Aptitude Test 

Online test -math & quants,verbal,puzzle,computer programming,logical

Round 2 - Group Activity 

(1 Question)

  • Q1. They select everyone from this & nothing serious
Round 3 - Technical 

(3 Questions)

  • Q1. Any program which you know.
  • Ans. 

    One program I know is a simple calculator program written in Python.

    • The program takes user input for two numbers and an operator (+, -, *, /).

    • It then performs the operation and displays the result.

    • Example: input 5, +, 3 -> output 8

  • Answered by AI
  • Q2. About the projects in the resume
  • Q3. About the internship
Round 4 - HR 

(2 Questions)

  • Q1. Tell about yourself
  • Q2. Can you relocate yourself(your answer should be yes)

Interview Preparation Tips

Interview preparation tips for other job seekers - They are just taking the mass recuritments.Nothing to worry,if you clear 1st round & have good communication skills then 210% you will be selected.People who have 0 skills have been selected from our college.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Referral and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - One-on-one 

(5 Questions)

  • Q1. List down Java 8 features and use case
  • Ans. 

    Java 8 introduced several new features including lambda expressions, streams, and functional interfaces.

    • Lambda expressions: Allow for more concise and readable code by enabling functional programming.

    • Streams: Provide a way to work with collections of objects in a more functional style.

    • Functional interfaces: Interfaces with a single abstract method, used to enable lambda expressions.

    • Optional class: Helps to avoid null p...

  • Answered by AI
  • Q2. List down Spring boot annotation used
  • Ans. 

    Spring boot annotations are used to simplify the development process by providing metadata to the Spring framework.

    • 1. @SpringBootApplication - Main annotation to indicate the main class of a Spring Boot application.

    • 2. @RestController - Annotation for RESTful web services.

    • 3. @Autowired - Dependency injection annotation.

    • 4. @GetMapping, @PostMapping, @PutMapping, @DeleteMapping - Annotations for mapping HTTP requests to c...

  • Answered by AI
  • Q3. Difference between String builder and String Buffer
  • Ans. 

    String Builder is not synchronized and faster, while String Buffer is synchronized and slower.

    • String Builder is not thread-safe, while String Buffer is thread-safe.

    • String Builder is faster due to lack of synchronization, while String Buffer is slower due to synchronization.

    • String Builder is recommended for single-threaded operations, while String Buffer is recommended for multi-threaded operations.

  • Answered by AI
  • Q4. What is String pool
  • Ans. 

    String pool is a storage area in memory where strings are stored to optimize memory usage by reusing common strings.

    • String pool helps in reducing memory usage by storing only one copy of each unique string.

    • Strings created using double quotes are stored in the string pool.

    • Strings created using new keyword are not stored in the string pool.

  • Answered by AI
  • Q5. Number of memory type have. like heap memory , stack
  • Ans. 

    There are two main types of memory in a computer system: stack memory and heap memory.

    • Stack memory is used for static memory allocation and is managed by the compiler. It is typically faster but limited in size.

    • Heap memory is used for dynamic memory allocation and is managed by the programmer. It is slower but has a larger size.

    • Examples: C programming language uses stack memory for function calls and heap memory for dy

  • Answered by AI

Interview Preparation Tips

Topics to prepare for IBM Senior Software Engineer interview:
  • Collections
  • java 8
  • Spring Boot
  • tsl
  • SSL
  • OOPS
  • String pool
  • Heap memory
  • Strig builder
  • String buffer

Skills evaluated in this interview

Tech Mahindra Interview FAQs

How many rounds are there in Tech Mahindra Software Engineer2 interview?
Tech Mahindra interview process usually has 1 rounds. The most common rounds in the Tech Mahindra interview process are Technical.

Tell us how to improve this page.

People are getting interviews through

based on 1 Tech Mahindra interview
WalkIn
100%
Low Confidence
?
Low Confidence means the data is based on a small number of responses received from the candidates.
Tech Mahindra Software Engineer2 Salary
based on 50 salaries
₹3.5 L/yr - ₹11.5 L/yr
63% less than the average Software Engineer2 Salary in India
View more details

Tech Mahindra Software Engineer2 Reviews and Ratings

based on 1 review

4.0/5

Rating in categories

3.0

Skill development

4.0

Work-Life balance

2.0

Salary & Benefits

3.0

Job Security

1.0

Company culture

1.0

Promotions/Appraisal

1.0

Work Satisfaction

Explore 1 Review and Rating
Software Engineer
26.3k salaries
unlock blur

₹2 L/yr - ₹10.7 L/yr

Senior Software Engineer
21.3k salaries
unlock blur

₹5.5 L/yr - ₹22.9 L/yr

Technical Lead
11.6k salaries
unlock blur

₹9.5 L/yr - ₹31.9 L/yr

Associate Software Engineer
5.4k salaries
unlock blur

₹1.8 L/yr - ₹6 L/yr

Team Lead
4.9k salaries
unlock blur

₹5.2 L/yr - ₹16.9 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