Upload Button Icon Add office photos

Filter interviews by

Mphasis Senior Java Developer Interview Questions, Process, and Tips

Updated 27 Jul 2024

Top Mphasis Senior Java Developer Interview Questions and Answers

Mphasis Senior Java Developer Interview Experiences

2 interviews found

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

(4 Questions)

  • Q1. What is Executer Service?
  • Ans. 

    ExecutorService is an interface in Java that provides a way to manage and control the execution of threads in a multithreaded environment.

    • It is part of the java.util.concurrent package.

    • It provides methods to submit tasks for execution, manage thread pools, and control the execution of tasks.

    • It allows for the execution of tasks asynchronously and provides features like scheduling, cancellation, and monitoring of tasks.

    • E...

  • Answered by AI
  • Q2. What is the use of JPA?
  • Ans. 

    JPA is a Java specification for mapping Java objects to relational databases.

    • JPA stands for Java Persistence API

    • It provides a way to map Java objects to database tables and vice versa

    • JPA simplifies the development of data access layer in Java applications

    • It supports object-relational mapping (ORM) and allows developers to work with entities, relationships, and queries in a more object-oriented way

  • Answered by AI
  • Q3. Explain about PreparedStatement
  • Ans. 

    PreparedStatement is used in Java to execute parameterized SQL queries to prevent SQL injection attacks.

    • PreparedStatement is a subinterface of Statement in Java.

    • It is used to execute parameterized SQL queries.

    • It helps prevent SQL injection attacks by automatically escaping special characters.

    • Example: PreparedStatement pstmt = connection.prepareStatement("SELECT * FROM users WHERE username = ?");

  • Answered by AI
  • Q4. Program to find the missing numbers from Array
  • Ans. 

    Program to find missing numbers from Array

    • Iterate through the array and store each number in a HashSet

    • Then iterate from 1 to the length of the array and check if each number exists in the HashSet

    • If a number is not found in the HashSet, it is a missing number

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. First non repeated charcter
  • Ans. 

    Find the first non-repeated character in a given string.

    • Iterate through the string and store the frequency of each character in a hashmap.

    • Iterate through the string again and return the first character with frequency 1.

  • Answered by AI

Skills evaluated in this interview

Senior Java Developer Interview Questions Asked at Other Companies

asked in Amdocs
Q1. Delete Kth node From EndYou have been given a singly Linked List ... read more
asked in Amdocs
Q2. Intersection of Linked ListYou are given two Singly Linked List o ... read more
asked in Amdocs
Q3. Merge Two Sorted Linked ListsYou are given two sorted linked list ... read more
asked in Amdocs
Q4. LRU Cache ImplementationDesign and implement a data structure for ... read more
Q5. When to use abstract class and when should we use interfaces in J ... read more

Interview questions from similar companies

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

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

Round 1 - Technical 

(3 Questions)

  • Q1. What are intermediate and terminal operations
  • Q2. Predefined functional interface
  • Q3. Ways to create Thread

Interview Preparation Tips

Interview preparation tips for other job seekers - It was moderate level of interview
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Comparable and comparator
  • Q2. Singleton class
  • Q3. Springboot questions were asked
  • Q4. Java class loader
  • Q5. Java 8 coding questions

Interview Preparation Tips

Topics to prepare for Coforge Senior Java Developer interview:
  • Java
  • Spring Boot
Interview preparation tips for other job seekers - Prepare well for java 8 coding questions
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I was interviewed in Sep 2024.

Round 1 - Assignment 

There were MCQ questions consists of different sections like Design Pattern,Java 8

Round 2 - Technical 

(2 Questions)

  • Q1. Questions related to Multithreading,Design patterns
  • Q2. Java coding questions
Round 3 - Technical 

(2 Questions)

  • Q1. Questions related to Multithreading
  • Q2. Java coding questions
Interview experience
2
Poor
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected
Round 1 - Technical 

(1 Question)

  • Q1. Java 8, exception handling for method overriding, collections basic on HashMap , hash set, blocking queue. Transient volatile

Interview Preparation Tips

Topics to prepare for Virtusa Consulting Services Senior Java Developer interview:
  • Java 8
  • exception handling
  • coding questions
Interview preparation tips for other job seekers - The 1st technical round was fine but the 2nd one was overwhelming since 4-5 people came to interview with cameras on so please be prepared.
Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-

I was interviewed in Jul 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. Find the longest substring without repeating characters
  • Ans. 

    Find the longest substring without repeating characters in a given string.

    • Use a sliding window approach to iterate through the string and keep track of the characters seen so far.

    • Update the start index of the window when a repeating character is encountered.

    • Keep track of the longest substring length and characters seen in a hashmap.

  • Answered by AI
  • Q2. Given a time array, check if the user can attend all meeting. Array had pairs - start time and end time

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Write a spring boot rest controller
  • Ans. 

    A Spring Boot REST controller is used to handle incoming HTTP requests and return appropriate responses.

    • Create a new Java class annotated with @RestController

    • Define request mapping annotations like @GetMapping, @PostMapping, @PutMapping, @DeleteMapping

    • Inject dependencies using @Autowired annotation

    • Return response using ResponseEntity or directly as method return value

  • Answered by AI
  • Q2. Write a code for get a reverse String having a comma separated value in java
  • Ans. 

    Code to reverse a comma separated string in Java

    • Split the input string by comma to get an array of strings

    • Iterate through the array in reverse order and append each element to a new string with a comma

    • Return the reversed comma separated string

  • Answered by AI

Skills evaluated in this interview

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

I applied via Company Website and was interviewed in Feb 2024. There were 3 interview rounds.

Round 1 - One-on-one 

(1 Question)

  • Q1. Java Springboot Microservices
Round 2 - Technical 

(1 Question)

  • Q1. Questions on Java spring AWS and Kafka
Round 3 - HR 

(1 Question)

  • Q1. Current salary? Expected salary?
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected
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 

(8 Questions)

  • Q1. DESCRIBE TYPES JVM MEMORY.
  • Ans. 

    JVM memory consists of Young Generation, Old Generation, and Permanent Generation.

    • Young Generation: where new objects are allocated and aged before moving to Old Generation.

    • Old Generation: where long-lived objects are stored.

    • Permanent Generation: where metadata such as class definitions and method information are stored.

  • Answered by AI
  • Q2. DIFFERENCE BETWEEN INTERFACE AND ABSTRACT CLASS.
  • Ans. 

    Interface is a contract with no implementation, while abstract class can have some implementation.

    • Interface cannot have any method implementation, while abstract class can have some method implementations.

    • 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 constructors, while interfaces cannot.

    • Example: In...

  • Answered by AI
  • Q3. HOW TO CREATE OUR OWN IMMUTABLE CLASS? WHY IMMUTABLE CLASS
  • Ans. 

    Immutable classes in Java are classes whose objects cannot be modified once they are created.

    • Make the class final to prevent inheritance

    • Make all fields private and final

    • Do not provide setter methods for fields

    • Ensure that any mutable objects within the class are also immutable

  • Answered by AI
  • Q4. WHAT IS DIFFERENCE BETWEEN COMPOSITION AND AGGREGATION ?
  • Ans. 

    Composition is a strong relationship where the child object cannot exist independently of the parent object, while aggregation is a weak relationship where the child object can exist independently.

    • Composition is a 'has-a' relationship, where the child object is a part of the parent object.

    • Aggregation is a 'has-a' relationship, where the child object is not a part of the parent object.

    • In composition, the child object is...

  • Answered by AI
  • Q5. DIFFERENCE BETWEEN COMPARABLE AND COMPARATOR.
  • Ans. 

    Comparable is an interface used for natural ordering of objects, while Comparator is an interface used for custom ordering of objects.

    • Comparable interface is implemented by the class whose objects are to be compared, while Comparator interface is implemented by a separate class.

    • Comparable interface has a single method compareTo() for comparing objects, while Comparator interface has a single method compare() for custom...

  • Answered by AI
  • Q6. DIFFERENCE BETWEEN HASHMAP AND CONCURRENTHASH MAP
  • Ans. 

    HashMap is not thread-safe while ConcurrentHashMap is thread-safe.

    • HashMap is not thread-safe and can lead to ConcurrentModificationException if modified during iteration.

    • ConcurrentHashMap allows concurrent read and write operations without the need for external synchronization.

    • ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments concurren...

  • Answered by AI
  • Q7. DIFFERENCE BETWEEN COLLECTION AND STREAM
  • Ans. 

    Collections store data while streams process data in a functional way.

    • Collections are used to store and manage groups of objects, while streams are used to process collections of objects.

    • Collections are mutable, meaning you can add, remove, or modify elements, while streams are immutable and do not change the original data.

    • Streams use functional programming concepts like map, filter, and reduce to process data efficien...

  • Answered by AI
  • Q8. IN WHICH SITUATION WE USE @PRIMARY AND @ QUALIFIER ?
  • Ans. 

    Use @Primary to specify a primary bean when multiple beans of the same type are present. Use @Qualifier to specify a specific bean when multiple beans of the same type are present.

    • Use @Primary to indicate the primary bean to be used when multiple beans of the same type are present in the Spring application context.

    • Use @Qualifier along with @Autowired to specify a specific bean to be injected when multiple beans of the ...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Everyone should focus on core java and java 1.8.
Spring boot and microservices

Skills evaluated in this interview

Mphasis Interview FAQs

How many rounds are there in Mphasis Senior Java Developer interview?
Mphasis interview process usually has 1 rounds. The most common rounds in the Mphasis interview process are One-on-one Round and Technical.
How to prepare for Mphasis Senior 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 Mphasis. The most common topics and skills that interviewers at Mphasis expect are Core Java, Microservices, Java, Rest and Spring.
What are the top questions asked in Mphasis Senior Java Developer interview?

Some of the top questions asked at the Mphasis Senior Java Developer interview -

  1. What is the use of J...read more
  2. Program to find the missing numbers from Ar...read more
  3. What is Executer Servi...read more

Tell us how to improve this page.

Mphasis Senior Java Developer Salary
based on 49 salaries
₹6.5 L/yr - ₹24 L/yr
13% less than the average Senior Java Developer Salary in India
View more details

Mphasis Senior Java Developer Reviews and Ratings

based on 2 reviews

4.0/5

Rating in categories

3.5

Skill development

3.5

Work-Life balance

3.0

Salary & Benefits

3.0

Job Security

3.0

Company culture

2.5

Promotions/Appraisal

2.5

Work Satisfaction

Explore 2 Reviews and Ratings
Software Engineer
6.2k salaries
unlock blur

₹2 L/yr - ₹11 L/yr

Senior Software Engineer
5.6k salaries
unlock blur

₹6 L/yr - ₹23 L/yr

Associate Software Engineer
4.6k salaries
unlock blur

₹2 L/yr - ₹6.4 L/yr

Module Lead
2.4k salaries
unlock blur

₹8.1 L/yr - ₹33 L/yr

Transaction Processing Officer
2.2k salaries
unlock blur

₹1.1 L/yr - ₹4.5 L/yr

Explore more salaries
Compare Mphasis with

Cognizant

3.8
Compare

Wipro

3.7
Compare

Accenture

3.9
Compare

TCS

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