i
Mphasis
Filter interviews by
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Handle exceptions globally in Springboot REST API
Use @ControllerAdvice annotation to define global exception handling for all controllers
Create a class annotated with @ControllerAdvice and define methods to handle specific exceptions
Use @ExceptionHandler annotation to specify which exceptions the method should handle
Return appropriate HTTP status codes and error messages in the exception handling methods
Microservices design pattern involves breaking down a large application into smaller, independent services.
Each microservice is responsible for a specific function or feature
Communication between microservices is typically done through APIs
Microservices can be deployed independently, allowing for easier scalability and maintenance
Examples include Netflix (uses microservices for different functionalities like recommenda...
Map method transforms each element in a stream, while flatMap method transforms each element into a stream and then flattens the result.
Map method applies a function to each element in the stream and returns a new stream with the transformed elements.
FlatMap method applies a function that returns a stream for each element in the original stream, then flattens these streams into a single stream.
Example: Using map to con...
Handling customized exceptions in controller advice with example code
Create a custom exception class that extends RuntimeException
Create a controller advice class to handle exceptions globally
Use @ExceptionHandler annotation in the controller advice class to handle specific exceptions
Return a custom error response with appropriate status code and message
The @SpringBootApplication annotation includes @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations.
Includes @Configuration annotation to specify that the class can be used by the Spring IoC container as a source of bean definitions.
Includes @EnableAutoConfiguration annotation to enable Spring Boot's auto-configuration feature.
Includes @ComponentScan annotation to specify the base packages to scan f
The questions were of medium difficulty level
They had given a topic and each were given 2minutes to discuss.
What people are saying about Mphasis
posted on 16 Jul 2021
posted on 29 Jan 2021
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
I applied via Recruitment Consultant and was interviewed in Dec 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jan 2021. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed in Apr 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Mar 2022. There were 3 interview rounds.
The question asks for information about current salary, notice period, and expected salary.
Provide the current salary, notice period, and expected salary.
If you don't have the information, mention that you don't have the data.
Format the response in JSON.
Some of the top questions asked at the Mphasis Senior Software Engineer interview for freshers -
The duration of Mphasis Senior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 3 interviews
Interview experience
based on 484 reviews
Rating in categories
Software Engineer
6.5k
salaries
| ₹2 L/yr - ₹9.5 L/yr |
Senior Software Engineer
5.7k
salaries
| ₹6 L/yr - ₹24 L/yr |
Associate Software Engineer
4.7k
salaries
| ₹2 L/yr - ₹6 L/yr |
Module Lead
2.4k
salaries
| ₹9.5 L/yr - ₹36 L/yr |
Transaction Processing Officer
2.3k
salaries
| ₹1.4 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS