Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Mphasis Team. If you also belong to the team, you can get access from here

Mphasis Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Mphasis SDE-2 Interview Questions and Answers

Updated 17 Dec 2021

7 Interview questions

A SDE-2 was asked
Q. What is the difference between Monolithic and Microservices Architecture?
Ans. 

Monolithic architecture is a single-tiered software application where all components are tightly coupled, while microservices architecture is a distributed approach where the application is broken down into smaller, loosely coupled services.

  • Monolithic architecture has a single codebase and database, while microservices have multiple smaller services with their own codebase and database.

  • Monolithic applications are ...

A SDE-2 was asked
Q. Why was a new version of Java (Java 8) needed in the first place?
Ans. 

Java 8 was needed to introduce new features like lambda expressions, streams, and default methods.

  • Introduction of lambda expressions for functional programming

  • Streams API for processing collections in a functional style

  • Default methods in interfaces for backward compatibility

  • Improved performance with the introduction of the Nashorn JavaScript engine

  • Date and Time API for better handling of date and time operations

SDE-2 Interview Questions Asked at Other Companies

asked in Walmart
Q1. Maximum Frequency Number Problem Statement Given an array of inte ... read more
Q2. Reverse String Operations Problem Statement You are provided with ... read more
asked in KhataBook
Q3. Alien Dictionary Problem Statement Ninja is mastering an unusual ... read more
asked in Atlassian
Q4. K Most Frequent Words Problem Statement Given an array of N non-e ... read more
asked in DP World
Q5. Count Ways To Reach The N-th Stair Problem Statement You are give ... read more
A SDE-2 was asked
Q. What are static methods in interfaces?
Ans. 

Static methods in interfaces are methods that can be called without creating an instance of the interface implementation.

  • Static methods in interfaces were introduced in Java 8.

  • They are used for providing utility methods that are related to the interface but do not require an instance of the implementing class.

  • Static methods in interfaces cannot be overridden by implementing classes.

  • Example: interface MyInterface {...

A SDE-2 was asked
Q. What is the difference between the Bridge Pattern and the Adapter Pattern in Java?
Ans. 

Bridge Pattern decouples abstraction from implementation, while Adapter Pattern adapts an interface to another.

  • Bridge Pattern separates abstraction and implementation using composition, while Adapter Pattern adapts an interface to another without changing its original structure.

  • Bridge Pattern allows for changes in both abstraction and implementation independently, while Adapter Pattern allows incompatible interfac...

What people are saying about Mphasis

View All
a senior delv software engineer
2w
Salary hypocrisy
Got selected in all rounds for a company and now during salary discussion they are telling budget is as same as my current salary and I am confused now. What would u guys do? Anybody faced similar problem?
Got a question about Mphasis?
Ask anonymously on communities.
A SDE-2 was asked
Q. What is the difference between Spring and Spring Boot?
Ans. 

Spring is a framework for building Java applications, while Spring Boot is an extension that simplifies the setup and configuration.

  • Spring is a comprehensive framework for building Java applications, providing features like dependency injection, aspect-oriented programming, and more.

  • Spring Boot is an extension of the Spring framework that aims to simplify the setup and configuration of Spring applications.

  • Spring B...

A SDE-2 was asked
Q. In how many ways can you create a singleton pattern in Java?
Ans. 

There are multiple ways to create a singleton pattern in Java, including using static initialization, lazy initialization, and enum.

  • Using static initialization: Create a private static instance of the class and a public static method to return that instance.

  • Lazy initialization: Create a private static instance of the class and a public static method to check if the instance is null before creating it.

  • Using enum: C...

A SDE-2 was asked
Q. What is the difference between @RestController and @Controller in Spring Boot?
Ans. 

Difference between @RestController and @Controller in Spring Boot

  • 1. @Controller is used to create web MVC controllers while @RestController is used to create RESTful web services.

  • 2. @Controller returns the view to be rendered while @RestController returns the object and data is written directly to the HTTP response as JSON or XML.

  • 3. @RestController is a specialized version of @Controller that includes @Controller ...

Are these interview questions helpful?

Mphasis SDE-2 Interview Experiences

1 interview found

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 17 Dec 2021

I appeared for an interview in Aug 2021.

Round 1 - Video Call 

(3 Questions)

Round duration - 45 minutes
Round difficulty - Medium

Technical Interview round that lasted for about 45 minutes. Questions were based on Java, Java design Patterns and OOPS Concepts.

  • Q1. What are static methods in interfaces?
  • Ans. 

    Static methods in interfaces are methods that can be called without creating an instance of the interface implementation.

    • Static methods in interfaces were introduced in Java 8.

    • They are used for providing utility methods that are related to the interface but do not require an instance of the implementing class.

    • Static methods in interfaces cannot be overridden by implementing classes.

    • Example: interface MyInterface { stat...

  • Answered by AI
  • Q2. Why was a new version of Java (Java 8) needed in the first place?
  • Ans. 

    Java 8 was needed to introduce new features like lambda expressions, streams, and default methods.

    • Introduction of lambda expressions for functional programming

    • Streams API for processing collections in a functional style

    • Default methods in interfaces for backward compatibility

    • Improved performance with the introduction of the Nashorn JavaScript engine

    • Date and Time API for better handling of date and time operations

  • Answered by AI
  • Q3. In how many ways can you create a singleton pattern in Java?
  • Ans. 

    There are multiple ways to create a singleton pattern in Java, including using static initialization, lazy initialization, and enum.

    • Using static initialization: Create a private static instance of the class and a public static method to return that instance.

    • Lazy initialization: Create a private static instance of the class and a public static method to check if the instance is null before creating it.

    • Using enum: Create...

  • Answered by AI
Round 2 - Video Call 

(4 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round that lasted for about 45 minutes. Questions were based on Spring boot and Microservices Concepts.

  • Q1. What is the difference between the Bridge Pattern and the Adapter Pattern in Java?
  • Ans. 

    Bridge Pattern decouples abstraction from implementation, while Adapter Pattern adapts an interface to another.

    • Bridge Pattern separates abstraction and implementation using composition, while Adapter Pattern adapts an interface to another without changing its original structure.

    • Bridge Pattern allows for changes in both abstraction and implementation independently, while Adapter Pattern allows incompatible interfaces to...

  • Answered by AI
  • Q2. What is the difference between @RestController and @Controller in Spring Boot?
  • Ans. 

    Difference between @RestController and @Controller in Spring Boot

    • 1. @Controller is used to create web MVC controllers while @RestController is used to create RESTful web services.

    • 2. @Controller returns the view to be rendered while @RestController returns the object and data is written directly to the HTTP response as JSON or XML.

    • 3. @RestController is a specialized version of @Controller that includes @Controller and @...

  • Answered by AI
  • Q3. What is the difference between Spring and Spring Boot?
  • Ans. 

    Spring is a framework for building Java applications, while Spring Boot is an extension that simplifies the setup and configuration.

    • Spring is a comprehensive framework for building Java applications, providing features like dependency injection, aspect-oriented programming, and more.

    • Spring Boot is an extension of the Spring framework that aims to simplify the setup and configuration of Spring applications.

    • Spring Boot i...

  • Answered by AI
  • Q4. What is the difference between Monolithic and Microservices Architecture?
  • Ans. 

    Monolithic architecture is a single-tiered software application where all components are tightly coupled, while microservices architecture is a distributed approach where the application is broken down into smaller, loosely coupled services.

    • Monolithic architecture has a single codebase and database, while microservices have multiple smaller services with their own codebase and database.

    • Monolithic applications are harde...

  • Answered by AI
Round 3 - HR 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

This was a typical HR round with some standard Behavioral questions

  • Q1. Why should we hire you?

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMphasis interview preparation:Topics to prepare for the interview - Java, Spring Boot Framework, Data Structures, Algorithms, System Design, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

I applied via Recruitment Consulltant and was interviewed before Apr 2021. There were 3 interview rounds.

Round 1 - Aptitude Test 

Standard Aptitude questions

Round 2 - Coding Test 

Based on strings and array

Round 3 - One-on-one 

(1 Question)

  • Q1. Background questions and technical questions related to problem solved

Interview Preparation Tips

Interview preparation tips for other job seekers - Mindtree is one of the best companies, i really miss working there.
It's more on your self development and your carrier.

SDE-2 Interview Questions Asked at Other Companies

asked in Walmart
Q1. Maximum Frequency Number Problem Statement Given an array of inte ... read more
Q2. Reverse String Operations Problem Statement You are provided with ... read more
asked in KhataBook
Q3. Alien Dictionary Problem Statement Ninja is mastering an unusual ... read more
asked in Atlassian
Q4. K Most Frequent Words Problem Statement Given an array of N non-e ... read more
asked in DP World
Q5. Count Ways To Reach The N-th Stair Problem Statement You are give ... read more

I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.

Interview Questionnaire 

3 Questions

  • Q1. Basic Programming questions.
  • Q2. Fibonacci program
  • Ans. 

    A Fibonacci program generates a sequence where each number is the sum of the two preceding ones, starting from 0 and 1.

    • The Fibonacci sequence starts with 0 and 1.

    • Each subsequent number is the sum of the previous two: 0, 1, 1, 2, 3, 5, 8, 13, ...

    • Common implementations include recursive, iterative, and using dynamic programming.

    • Example of an iterative approach in Python: ```python def fibonacci(n): a, b = 0, 1 ...

  • Answered by AI
  • Q3. OOPS concepts.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare basic OOPS concepts and basic programs.

I applied via Campus Placement and was interviewed before May 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

Basic aptitude knowledge

Round 2 - Coding Test 

Strong in java

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confidence and focus on your goal

What people are saying about Mphasis

View All
a senior delv software engineer
2w
Salary hypocrisy
Got selected in all rounds for a company and now during salary discussion they are telling budget is as same as my current salary and I am confused now. What would u guys do? Anybody faced similar problem?
Got a question about Mphasis?
Ask anonymously on communities.

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Easy

It happens in very friendly manner.

  • Q1. 

    Paths in a Matrix Problem Statement

    Given an 'M x N' matrix, print all the possible paths from the top-left corner to the bottom-right corner. You can only move either right (from (i,j) to (i,j+1)) or dow...

  • Ans. 

    Print all possible paths from top-left to bottom-right in a matrix by moving only right or down.

    • Use backtracking to explore all possible paths from top-left to bottom-right in the matrix.

    • At each cell, recursively explore moving right and down until reaching the bottom-right corner.

    • Keep track of the current path and add it to the result when reaching the destination.

  • Answered by AI
  • Q2. Can you create 2 tables in SQL and perform different operations on them?
  • Ans. 

    Yes, I can create 2 tables in SQL and perform operations like INSERT, SELECT, UPDATE, and DELETE.

    • Create Table 1: CREATE TABLE employees (id INT, name VARCHAR(50), salary DECIMAL(10,2));

    • Create Table 2: CREATE TABLE departments (dept_id INT, dept_name VARCHAR(50));

    • Insert Data: INSERT INTO employees VALUES (1, 'John Doe', 50000);

    • Select Data: SELECT * FROM employees WHERE salary > 40000;

    • Update Data: UPDATE employees SET...

  • Answered by AI
Round 2 - Face to Face 

Round duration - 90 minutes
Round difficulty - Medium

No problem occur very friendly environment.

Round 3 - Face to Face 

(1 Question)

Round duration - 90 minutes
Round difficulty - Hard

  • Q1. 

    Rat in a Maze Problem Statement

    You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...

  • Ans. 

    Find all possible paths for a rat in a maze from source to destination.

    • Use backtracking to explore all possible paths in the maze.

    • Keep track of visited cells to avoid revisiting them.

    • Explore all possible directions (up, down, left, right) from each cell.

    • Add the current direction to the path and recursively explore further.

    • If the destination is reached, add the path to the list of valid paths.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in HyderabadEligibility criteriaAbove 7 CGPAVirtusa interview preparation:Topics to prepare for the interview - Linked List, Binary Search Tree ,Queue, Array ,DP ,Graph ,RecursionTime required to prepare for the interview - 3 MonthsInterview preparation tips for other job seekers

Tip 1 : Competitive programming plays a major role when you are appearing for coding rounds as a fresher. In the coding rounds, you won't get direct problems copied from Geeksforgeeks or Leetcode. You would be required to use your logical thinking to go ahead in the process. This is where competitive programming helps.

Tip 2 : Coding rounds are all about Coding + Timing. Most people fail to excel due to the pressure of a timer ticking on your head. So, instead of just solving problems, try to participate in timed contests. This will help you be used to the pressure of the timer.

Tip 3 : Many big companies like Microsoft, Amazon, and even Google expect you to be good at standard problems. So, once you are done with coding round by your logical skills and competitive programming, you must be well versed with some standard problems in order to excel.

Application resume tips for other job seekers

Tip 1 : Make it short, crisp, and simple. It is always good to have a 1 pager resume. 
Tip 2 : Resume must comprise of the following: Educational Qualifications, Technical skills, Projects, Work experience (if any), Achievements. Other than this, you may include some extra co-curricular achievements.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Questionnaire 

1 Question

  • Q1. All about SQL joins,data warehouse.

Interview Preparation Tips

Interview preparation tips for other job seekers - Be prepared and answer only if you know the concept clearly.

Interview Preparation Tips

Round: Group Discussion
Experience: The result were announced just after the session. The basis of selection was confidence & communication skill as usual.
It was mostly a nice & health discussion.
Tips: Talk short & precise.
Use your hands in explanations.
Dont argue just discuss
Duration: 15 min minutes

Round: Technical Interview
Experience: Questions from c programming, database management, c++, data structure were asked. The HR was trying to confuse and showing confidence was important.

Tips: Answer with confidence
Dont say directly NO to a question

Round: HR Interview
Experience: It was all about confidence and your ability to converse.
HR asked me about myself and why did i want to join the firm etc.
He was mostly looking for a positive attitude.
Tips: Keep a smile.
Converse well & again be confident.
Confidence is the key but overconfidence is bad.

General Tips: Keep your cool
Be confident
Have a positive approach
Skill Tips: Prepare well for Interview
Be confident about wat you know.
Skills: Programming, positive attitude, Confidence
College Name: Gandhi Institute Of Engineering And Technology
Motivation: It is a MNC.
Growth will be good
Future scopes are high
Are these interview questions helpful?

I applied via Referral

Interview Questionnaire 

5 Questions

  • Q1. You have knowledge of data structure? Tell me about it
  • Ans. 

    Data structures are a way to organize and store data efficiently.

    • Data structures are used to store and manipulate data in a structured manner.

    • They provide different ways to access and perform operations on the data.

    • Examples include arrays, linked lists, stacks, queues, trees, and graphs.

  • Answered by AI
  • Q2. Tell me something about your major project
  • Ans. 

    Developed a web-based project management tool for tracking tasks and deadlines

    • Used React.js for front-end development

    • Implemented RESTful APIs using Node.js and Express for back-end

    • Utilized MongoDB for database management

    • Incorporated user authentication and authorization features

    • Integrated real-time notifications using Socket.io

  • Answered by AI
  • Q3. What is your name ?
  • Ans. 

    My name is John Smith.

    • Full name is John Smith

    • Common name in English-speaking countries

    • Easy to remember and pronounce

  • Answered by AI
  • Q4. What does my name mean?
  • Ans. 

    The question is unrelated to the medical field and is not a puzzle or riddle.

    • The question is asking about the meaning of the interviewer's name.

    • You can ask the interviewer about the origin or cultural significance of their name.

    • You can also mention that names often have different meanings in different languages or cultures.

  • Answered by AI
  • Q5. What are your strenghts?
  • Ans. 

    My strengths include problem-solving skills, attention to detail, and strong communication abilities.

    • Strong problem-solving skills - I enjoy tackling complex issues and finding creative solutions.

    • Attention to detail - I am meticulous in my work and strive for accuracy in all tasks.

    • Strong communication abilities - I can effectively convey ideas and collaborate with team members.

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: The written test of hexaware was way more tough than i thought. Basically you will see on other website that hexaware written test is easy but it was not trust me. So talking more about my test there were 4 sections verbal, aptitude, analytical reasoning and technical also. I am a electronics and communication student so there were technical question from my field of study only but for IT and Computer Science there were programming questions. And there is 10 mins of essay writting also.
Tips: Be prepare for anything. Dont judge the written exam will be easy or tough anything can happen and prepare your best.
Duration: 60 minutes
Total Questions: 75

Round: Group Discussion
Experience: Well, i think my group discussion topic was easy but the only problem was that every person is fully aware of that topic so thought process has become very simple. But still somehow i manage to clear this round also.
Tips: Be calm and if you dont know about some topic so wait for few minutes and listen what others are saYing . The HR will only be checking your communication skills.
Duration: 10 mins minutes

Round: Technical Interview
Experience: I am an EC student so there were very basic question of c and data structure programming and from my field he only asked about my project work and keep asking question from it. I guess he was checking my patience.

Round: HR Interview
Experience: The HR round was quite good. The question was really very basic from my family and strengths and weakness. But i dont know why he asked me a question of c programming and he asked me to make a program generally i have never heard that in HR interview, the HR asking you a technical question but anything can happen .
Tips: Keep yourself calm . Keep wide knowledge of your field.

Skills: Basic C/C++, Communication, Ability To Deliver On A Project, Ability To Work In A Team, Ability To Deliver On A Project, Advance Communication, Confidence
College Name: IPS College of Technology & Management
Motivation: Hexaware is globally recognised company plus its an MNC.

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: There was a test regarding basic aptitude and English. A few people were selected based on the test.

Round: Other Interview
Experience: An interview will be the next morning based on your resume, co-curricular activities and quite a few interesting puzzles.

Round: Other Interview
Experience: A 2nd interview regarding your guessing skills and a few more puzzles and some HR.

General Tips: Sleep after giving exam hoping you will get an interview. Go attend the interview only if you are interested in math.
Skill Tips: Any books that have puzzles for interview. I didn’t prepare much for apti.
College Name: NIT SURATHKAL

Interview Preparation Tips

Round: Resume Shortlist
Experience: This round they want to know about why do you want to leave your job?
current ctc
expected ctc
how many experience do you have on particular technology?
Tips: this round is simple you have to tell all the details of your profile and if they want this profile candidate they shortlisted you..
they want positive response, so be positive.

Tell us how to improve this page.

Interview Questions from Similar Companies

LTIMindtree Interview Questions
3.7
 • 3k Interviews
DXC Technology Interview Questions
3.7
 • 837 Interviews
EXL Service Interview Questions
3.7
 • 802 Interviews
Nagarro Interview Questions
4.0
 • 792 Interviews
NTT Data Interview Questions
3.8
 • 658 Interviews
Publicis Sapient Interview Questions
3.5
 • 643 Interviews
View all
Software Engineer
6.7k salaries
unlock blur

₹2 L/yr - ₹11.1 L/yr

Senior Software Engineer
5.9k salaries
unlock blur

₹6 L/yr - ₹25 L/yr

Associate Software Engineer
4.9k salaries
unlock blur

₹2 L/yr - ₹5.6 L/yr

Module Lead
2.5k salaries
unlock blur

₹9.5 L/yr - ₹37 L/yr

Transaction Processing Officer
2.3k salaries
unlock blur

₹1 L/yr - ₹4.5 L/yr

Explore more salaries
Compare Mphasis with

Cognizant

3.7
Compare

Wipro

3.7
Compare

Accenture

3.8
Compare

TCS

3.6
Compare
write
Share an Interview