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 Fullstack Java Developer Interview Questions and Answers

Updated 29 May 2024

Tech Mahindra Fullstack Java Developer Interview Experiences

1 interview found

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(4 Questions)

  • Q1. Java Basic questions
  • Q2. SpringBoot Basic questions
  • Q3. Simple DSA problem: "introduction" find duplicate characters
  • Ans. 

    Find duplicate characters in a given array of strings

    • Iterate through each string in the array

    • For each string, iterate through each character and store the count in a hashmap

    • If the count of any character is greater than 1, it is a duplicate

  • Answered by AI
  • Q4. Write code for REST API using spring boot, include all annotation
  • Ans. 

    Code for REST API using Spring Boot with annotations

    • Use @RestController annotation to define the class as a REST controller

    • Use @RequestMapping annotation to map HTTP requests to handler methods

    • Use @GetMapping, @PostMapping, @PutMapping, @DeleteMapping annotations for specific HTTP methods

    • Use @PathVariable annotation to extract values from the URI

    • Use @RequestBody annotation to bind HTTP request body to a method paramete

  • Answered by AI

Skills evaluated in this interview

Interview questions from similar companies

Round 1 - One-on-one 

(1 Question)

  • Q1. A senior in my current team was asking questions. He was helping to complete my answers. Be prepared with oops, collection, thread concepts, spring, hibernate basics thoroughly.

Interview Preparation Tips

Interview preparation tips for other job seekers - Simple... Most was from angular for first round, then move to java. You should be strong in java. Front end they won't ask much questions
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Tell me about internal working of JVM
  • Q2. Tell me about SAGA pattern in Microservices
  • Ans. 

    SAGA pattern is a design pattern used in microservices architecture to manage distributed transactions.

    • SAGA pattern breaks down a long-running transaction into a series of smaller, independent transactions.

    • Each step in the SAGA pattern is a separate service that communicates with other services through events.

    • If a step fails, compensating transactions are executed to rollback the changes made by previous steps.

    • Example:...

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. Tell me about your current project structure
  • Q2. What is an API , how would you secure an API
  • Ans. 

    API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.

    • API is a set of rules and protocols that allows different software applications to communicate with each other.

    • To secure an API, you can use authentication methods like OAuth, API keys, or JWT tokens.

    • Implementing encryption (HTTPS) and rate limiting can also enhance API secu...

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. Why do you want to relocate to Bangalore
  • Q2. Tell me about one instance where you faced pressure and how did you overcome ?

Interview Preparation Tips

Interview preparation tips for other job seekers - You can assume easy to medium level questions.
Interview experience
1
Bad
Difficulty level
Easy
Process Duration
2-4 weeks
Result
Not Selected

I appeared for an interview in Aug 2023.

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 

(4 Questions)

  • Q1. SQL - a table with emp-id, emp-name, manager-id, Need to find the manger name for each emplyee.
  • Q2. FizzBuzz - if number is divisible by 3 print "fizz", if by 5 print "buzz", if by both "fizzbuzz"
  • Ans. 

    A simple program to print 'fizz' for multiples of 3, 'buzz' for multiples of 5, and 'fizzbuzz' for multiples of both.

    • Iterate through numbers from 1 to n.

    • Use modulo operator to check divisibility by 3 and 5.

    • Print 'fizz', 'buzz', or 'fizzbuzz' accordingly.

  • Answered by AI
  • Q3. Is it necessary for classes implementing an interface to implement interface methods?
  • Ans. 

    Yes, classes implementing an interface must implement interface methods.

    • Classes implementing an interface must provide concrete implementations for all methods declared in the interface.

    • Failure to implement all interface methods will result in a compilation error.

    • Interfaces are used to define a contract that implementing classes must adhere to.

  • Answered by AI
  • Q4. Spring basics - annotations
Round 3 - Technical 

(1 Question)

  • Q1. Spring boot basics
Round 4 - HR 

(1 Question)

  • Q1. Talked about my previous companies and salary. Before they conduct the interview I had told them my expectation, while negotiation they denied for providing that and were offering just 10% hike over my cur...

Interview Preparation Tips

Interview preparation tips for other job seekers - Don't go for this company. It is just waste of time.

Skills evaluated in this interview

I applied via Naukri.com and was interviewed in Mar 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 - Technical 

(2 Questions)

  • Q1. Hashmap inter working, arraylist internal working, concurrent hashmap, comprator vs comprable, list, set, queue, transient vs volatile, Serializable, executor framework,
  • Q2. Java 8 features especaily stream
Round 3 - HR 

(5 Questions)

  • Q1. What are your salary expectations?
  • Ans. 

    I am open to discussing salary based on the responsibilities and requirements of the position.

    • I am flexible and open to negotiation.

    • I am looking for a competitive salary based on my skills and experience.

    • I would like to be compensated fairly for the value I can bring to the company.

    • I am interested in discussing the overall compensation package, including benefits and bonuses.

  • Answered by AI
  • Q2. What is your family background?
  • Ans. 

    My family background is diverse and multicultural, with members from different countries and professions.

    • My parents are from different countries, which has exposed me to different cultures and languages.

    • My father is a doctor and my mother is an engineer, which has influenced my interest in both medicine and technology.

    • I have relatives who are teachers, artists, and entrepreneurs, which has broadened my perspective on v...

  • Answered by AI
  • Q3. Why are you looking for a change?
  • Ans. 

    Looking for new challenges and growth opportunities.

    • Seeking a more challenging role to enhance my skills and knowledge.

    • Interested in working with new technologies and frameworks.

    • Want to be part of a dynamic and innovative team.

    • Desire for career growth and advancement.

    • Looking for a better work-life balance.

  • Answered by AI
  • Q4. Where do you see yourself in 5 years?
  • Ans. 

    In 5 years, I see myself as a highly skilled Fullstack Java Developer, leading a team and working on complex projects.

    • Leading a team of developers

    • Working on complex projects

    • Continuously improving my skills

    • Contributing to the success of the company

  • Answered by AI
  • Q5. Tell me about yourself.
  • Ans. 

    I am a Fullstack Java Developer with experience in developing web applications using Java, Spring, and JavaScript.

    • I have a strong understanding of Java programming language and its frameworks like Spring and Hibernate.

    • I am proficient in front-end technologies like HTML, CSS, and JavaScript.

    • I have experience in developing RESTful APIs and working with databases like MySQL and MongoDB.

    • I am familiar with Agile development...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Oops basic concept, angular, hibernate and spring framework

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

Round 1 - Technical 

(1 Question)

  • Q1. Q1 - tell me about yourself After my introduction he directly jump into coding and asked me simple array manipulation question. Q3 - balanced string - you have a String = "()()()" or "(()" or "(()). The ou...
Round 2 - Technical 

(1 Question)

  • Q1. The interviewers don't know how to speak English and are worst in communication. Q1 - Convert int a=123 to string. I told him you can do it with in built method but he asked me to do without it. I told h...

Interview Preparation Tips

Interview preparation tips for other job seekers - My experience was bad because both the interviewers are not able to communicate properly and was not able to speak English properly.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Company Website and was interviewed in Aug 2023. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Introduce yourself ?
  • Q2. What are the courses you are familiar with ?
  • Q3. Explain oops concept in java
  • Ans. 

    OOPs concept in Java is a programming paradigm that focuses on objects and their interactions.

    • OOPs stands for Object-Oriented Programming.

    • It involves the use of classes, objects, inheritance, polymorphism, and encapsulation.

    • Classes are blueprints for creating objects, and objects are instances of classes.

    • Inheritance allows classes to inherit properties and behaviors from other classes.

    • Polymorphism allows objects of dif...

  • Answered by AI
  • Q4. Write a palindrome program in java
  • Ans. 

    A palindrome program in Java checks if a given string is the same when read forwards and backwards.

    • Convert the string to lowercase to ignore case sensitivity.

    • Use two pointers, one starting from the beginning and the other from the end of the string.

    • Compare the characters at the two pointers, moving them towards the center until they meet or cross each other.

    • If at any point the characters are not equal, the string is no...

  • Answered by AI
  • Q5. Create a table questions in mysql
  • Ans. 

    Creating a table named 'questions' in MySQL.

    • Use the CREATE TABLE statement to create the table.

    • Specify the table name, column names, and their data types.

    • Set primary key, foreign key, and other constraints if required.

    • Add any additional properties like auto-increment, default values, etc.

    • Execute the SQL statement to create the table.

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Capgemini Fullstack Java Developer interview:
  • Java
  • MySQL Database Administration
  • OOPS
Interview preparation tips for other job seekers - Be confident ,
Make sure you are well prepared in java .

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Sep 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 - Aptitude Test 

Date -2 march 2023 ,Time 2-5pm , topics-Java

Round 3 - HR 

(5 Questions)

  • Q1. Tell me something about yourself.
  • Q2. What is your Excepted salary?
  • Q3. What is your greatest Strengths?
  • Q4. Concept of Core-java & Advance-java
  • Q5. Basic Interview Questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Market Yourself.
Apply even if u are not fully qualified
please schedule of my test AS soon as possible.
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
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 

(9 Questions)

  • Q1. What is sychronization ?
  • Ans. 

    Synchronization is the process of coordinating multiple threads to ensure safe and consistent access to shared resources.

    • Synchronization is used to prevent race conditions and ensure thread safety.

    • It can be achieved using synchronized blocks or methods.

    • Synchronization can cause performance issues if not used properly.

    • Example: Synchronizing access to a shared counter variable in a multi-threaded application.

  • Answered by AI
  • Q2. What is encapsulation ?
  • Ans. 

    Encapsulation is the process of hiding implementation details and providing access to only necessary information.

    • Encapsulation is achieved through access modifiers such as public, private, and protected.

    • It helps in achieving data abstraction and information hiding.

    • Encapsulation provides better control over the data and prevents unauthorized access.

    • Example: A class with private variables and public methods to access the...

  • Answered by AI
  • Q3. What is interface in java ?
  • Ans. 

    An interface in Java is a collection of abstract methods and constants that can be implemented by a class.

    • Interfaces are used to achieve abstraction and provide a way to implement multiple inheritance in Java.

    • All methods in an interface are abstract by default and cannot have a body.

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

    • Interfaces can also have default and static methods with a body.

    • Ex...

  • Answered by AI
  • Q4. What is collection framework?
  • Ans. 

    Collection framework is a set of classes and interfaces that provide a way to store and manipulate groups of objects.

    • It provides interfaces like List, Set, Queue, etc. for storing collections of objects.

    • It also provides classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.

    • It allows easy manipulation of collections using methods like add, remove, contains, etc.

    • It provides algorithms like ...

  • Answered by AI
  • Q5. What is diffrence between Arraylist and vector ?
  • Ans. 

    ArrayList is not synchronized while Vector is synchronized.

    • ArrayList is faster than Vector as it is not synchronized.

    • Vector is thread-safe while ArrayList is not.

    • Vector is a legacy class while ArrayList is not.

    • Vector can grow by a specified amount while ArrayList grows by 50% of its size.

    • Example: ArrayList list = new ArrayList<>(); Vector vector = new Vector<>();

    • Example: list.add(1); vector.add(1);

    • Example: list.get(0);

  • Answered by AI
  • Q6. What are the legacy classes in java?
  • Ans. 

    Legacy classes in Java are the classes that have been replaced by newer versions but are still supported for backward compatibility.

    • Legacy classes are part of the Java API and are still supported for backward compatibility.

    • They have been replaced by newer versions but are still used in older applications.

    • Examples of legacy classes include Vector, Hashtable, and Enumeration.

    • Legacy classes are not recommended for use in ...

  • Answered by AI
  • Q7. What is joins in SQL ?
  • Ans. 

    Joins in SQL are used to combine data from two or more tables based on a related column.

    • Joins are used to retrieve data from multiple tables in a single query.

    • There are different types of joins such as inner join, left join, right join, and full outer join.

    • Inner join returns only the matching rows from both tables, left join returns all rows from the left table and matching rows from the right table, right join returns...

  • Answered by AI
  • Q8. What is autoboxing and auto-unboxing ?
  • Ans. 

    Autoboxing is the automatic conversion of primitive data types to their corresponding object wrapper classes.

    • Autoboxing allows primitive data types to be used as objects.

    • Auto-unboxing is the reverse process of autoboxing.

    • Autoboxing and auto-unboxing are performed automatically by the compiler.

    • Example: int i = 10; Integer j = i; // autoboxing

    • Example: Integer j = 10; int i = j; // auto-unboxing

  • Answered by AI
  • Q9. Difference between where clause and having clause in SQL ?
  • Ans. 

    Where clause filters rows before grouping, having clause filters groups after grouping.

    • Where clause is used to filter rows based on a condition before grouping.

    • Having clause is used to filter groups based on a condition after grouping.

    • Where clause is used with SELECT, UPDATE, DELETE statements.

    • Having clause is used with SELECT statement and GROUP BY clause.

    • Where clause cannot contain aggregate functions.

    • Having clause c...

  • Answered by AI

Skills evaluated in this interview

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

I applied via Walk-in and was interviewed before Apr 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Hash map implementation
  • Ans. 

    Hash map is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.

    • Hash map uses hashing to map keys to indices in an array.

    • It allows for constant time complexity O(1) for insertion, deletion, and retrieval operations.

    • Example: HashMap map = new HashMap<>(); map.put("key", 123); int value = map.get("key");

  • Answered by AI

Skills evaluated in this interview

Tech Mahindra Interview FAQs

How many rounds are there in Tech Mahindra Fullstack Java Developer interview?
Tech Mahindra interview process usually has 1 rounds. The most common rounds in the Tech Mahindra interview process are One-on-one Round.
How to prepare for Tech Mahindra Fullstack 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 Angularjs, Bootstrap, HTML, Microservices and Node.Js.
What are the top questions asked in Tech Mahindra Fullstack Java Developer interview?

Some of the top questions asked at the Tech Mahindra Fullstack Java Developer interview -

  1. write code for REST API using spring boot, include all annotat...read more
  2. simple DSA problem: "introduction" find duplicate charact...read more
  3. SpringBoot Basic questi...read more

Tell us how to improve this page.

Tech Mahindra Fullstack Java Developer Interview Process

based on 3 interviews

Interview experience

3.3
  
Average
View more
Tech Mahindra Fullstack Java Developer Salary
based on 8 salaries
₹4 L/yr - ₹9.4 L/yr
27% less than the average Fullstack Java Developer Salary in India
View more details

Tech Mahindra Fullstack Java Developer Reviews and Ratings

based on 1 review

4.0/5

Rating in categories

5.0

Skill development

4.0

Work-life balance

2.0

Salary

4.0

Job security

4.0

Company culture

4.0

Promotions

4.0

Work satisfaction

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

₹2 L/yr - ₹9.3 L/yr

Senior Software Engineer
21.5k salaries
unlock blur

₹5.5 L/yr - ₹23 L/yr

Technical Lead
11.9k salaries
unlock blur

₹9.5 L/yr - ₹32 L/yr

Associate Software Engineer
5.6k salaries
unlock blur

₹1.8 L/yr - ₹5.8 L/yr

Team Lead
5k salaries
unlock blur

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