Filter interviews by
Design patterns are reusable solutions to common problems in software design.
Design patterns help in creating flexible, maintainable, and scalable software.
Some common design patterns include Singleton, Factory, Observer, Strategy, and Decorator.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying the exact class of object...
Delegates are type-safe function pointers in C# used for implementing callbacks. async/await is used for asynchronous programming in C#.
Delegates in C# are similar to function pointers in C or C++. They allow methods to be passed as parameters to other methods.
Async/await in C# is used for asynchronous programming, allowing methods to run asynchronously without blocking the main thread.
Delegates can be used with async/
An interceptor is a design pattern commonly used in software development to capture and manipulate requests and responses.
Interceptors can be used for logging, authentication, authorization, caching, error handling, etc.
In Angular, interceptors can be used to modify HTTP requests before they are sent and responses before they are received.
In Spring framework, interceptors can be used to intercept client requests and se
Authentication is the process of verifying the identity of a user or system.
Authentication involves confirming the identity of a user through credentials such as passwords, biometrics, or security tokens.
Common methods of authentication include single-factor authentication (e.g. password) and multi-factor authentication (e.g. password + SMS code).
Authentication can be achieved through protocols like OAuth, OpenID, SAML...
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
I applied via Approached by Company and was interviewed in Jul 2024. There was 1 interview round.
Java program to count the number of repeated characters in a string
Create a HashMap to store characters and their counts
Iterate through the string and update the counts in the HashMap
Print the characters with counts greater than 1
Cucumber architecture is a testing framework that supports Behavior Driven Development (BDD) by allowing tests to be written in plain language.
Cucumber uses Gherkin syntax to define test cases in a human-readable format
It separates the test logic from the test data using feature files and step definitions
Cucumber integrates with various programming languages like Java, Ruby, and JavaScript
It allows collaboration betwee...
Feature file for login page
Create a feature file named 'login.feature'
Define a scenario for successful login
Define a scenario for unsuccessful login
Include steps like entering username, password, clicking login button
Use Given-When-Then format for scenarios
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
To avoid concurrent modification exception, use synchronized blocks or data structures like ConcurrentHashMap.
Use synchronized blocks to ensure only one thread can modify the data at a time
Use data structures like ConcurrentHashMap which are designed to handle concurrent modifications
Consider using immutable objects to prevent modification conflicts
Using stream API for coding questions
Use stream() method to convert a collection into a Stream
Use filter() method to filter elements based on a condition
Use map() method to transform elements into another form
Use collect() method to collect the elements into a new collection
Mphasis interview questions for designations
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Using Java 8, filter names starting with 'A' and in department 2 and add them to a new list.
Use Java 8 stream to filter names starting with 'A' and in department 2
Collect the filtered names into a new list
Transactional annotation in software engineering is used to manage database transactions.
Transactional annotation ensures that a group of operations are treated as a single unit of work.
It helps in maintaining data integrity by either committing all changes or rolling back if an error occurs.
Examples include @Transactional in Spring framework and @Transaction in Java EE.
Get interview-ready with Top Mphasis Interview Questions
I applied via Job Portal and was interviewed in Aug 2024. There was 1 interview round.
Java JVM stands for Java Virtual Machine, which is a virtual machine that enables a computer to run Java programs.
Java JVM is a virtual machine that interprets Java bytecode and executes it on the underlying hardware.
It provides platform independence by abstracting the hardware and operating system details.
JVM manages memory, garbage collection, and runtime environment for Java programs.
Examples of JVM implementations
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
It allows for data hiding, which prevents outside code from directly accessing an object's internal state.
Encapsulation also helps in achieving data abstraction, where the internal details of an object are hidden and only the nec...
I applied via Approached by Company and was interviewed in Mar 2024. There was 1 interview round.
Linux architecture is a layered system with kernel at the core, followed by system libraries, utilities, and user interface.
Linux architecture consists of the kernel, which is the core component responsible for managing hardware resources and providing essential services.
Above the kernel are system libraries, which provide additional functionalities to applications and help in interacting with the kernel.
Utilities in L...
I manage servers using automation tools like Ansible and monitoring tools like Nagios.
Utilize automation tools like Ansible to provision and configure servers
Implement monitoring tools like Nagios to track server performance and uptime
Regularly update software and security patches to ensure server stability
Implement backup and disaster recovery plans to prevent data loss
Utilize cloud services like AWS or Azure for scal
File management commands are used to interact with files and directories on a computer system.
ls - list files and directories in the current directory
cd - change directory
mkdir - create a new directory
rm - remove files or directories
cp - copy files or directories
mv - move files or directories
touch - create a new file
chmod - change file permissions
Commands related to process management include ps, top, kill, and nice.
ps - displays information about currently running processes
top - provides a dynamic real-time view of a running system
kill - terminates a process by sending a signal to its PID
nice - sets the priority of a process
ASP.NET Core is a cross-platform, high-performance framework for building modern, cloud-based, internet-connected applications.
Cross-platform framework for building web applications
High-performance and scalable
Supports cloud-based and internet-connected applications
Web API is a set of rules and protocols that allow different software applications to communicate with each other over the internet.
Web API stands for Application Programming Interface for web-based systems.
It allows different software applications to interact with each other over the internet.
Web APIs use HTTP protocols to enable communication between systems.
Examples of web APIs include RESTful APIs, SOAP APIs, and G
Top trending discussions
3 Interview rounds
based on 426 reviews
Rating in categories
Software Engineer
6.2k
salaries
| ₹2 L/yr - ₹11 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹6 L/yr - ₹23 L/yr |
Associate Software Engineer
4.6k
salaries
| ₹2 L/yr - ₹6.4 L/yr |
Module Lead
2.4k
salaries
| ₹8.1 L/yr - ₹33 L/yr |
Transaction Processing Officer
2.2k
salaries
| ₹1.1 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS