Upload Button Icon Add office photos

Filter interviews by

Morgan Stanley Java Developer Interview Questions, Process, and Tips

Updated 26 Oct 2024

Top Morgan Stanley Java Developer Interview Questions and Answers

  • Q1. Find the maximum element in the array after update operations. You have been given an array/list ‘A’ consisting of ‘N’ integers all of which are ‘0’ initially. You are gi ...read more
  • Q2. Java Question Why do we need to override equals and hashcode methods in Java?
  • Q3. OS Question Print even and odd numbers in increasing order using two threads in Java
View all 7 questions

Morgan Stanley Java Developer Interview Experiences

4 interviews found

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

I applied via Company Website and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Quick sort - keep order same
  • Q2. Reverse string with spaces but keep the space position intact
  • Ans. 

    Reverse a string while keeping the position of spaces intact

    • Split the string into an array of characters

    • Iterate through the array and reverse the characters while keeping track of space positions

    • Join the array back into a string

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Study DSA properly and java basics - immutable class cases
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
Not Selected

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

Round 1 - Coding Test 

Round 1 was an online hackerank coding test + technical MCQs.

It consisted of 5 MCQs + 1 SQL problem + 1 DSA problem based on queue + 1 Graph question + 1 java based question to create a REST API.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well for any type of DSA problems for level medium to difficult.

Java Developer Interview Questions Asked at Other Companies

asked in Deloitte
Q1. Sort 0 1You have been given an integer array/list(ARR) of size N ... read more
Q2. Parent class has run() and walk() . Parent run() - calls walk() C ... read more
asked in LTIMindtree
Q3. Longest Harmonious SubsequenceYou are given an array ‘ARR’ of 'N' ... read more
asked in Deloitte
Q4. Convert Bst To The Greater Sum TreeYou have been given a Binary S ... read more
Q5. 2. What will happen if hashcode only returns a constant? How will ... read more

Java Developer Interview Questions & Answers

user image CodingNinjas

posted on 11 Mar 2022

I was interviewed in Oct 2021.

Round 1 - Video Call 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Technical Interview round with questions on DSA and Java.

  • Q1. Find the maximum element in the array after update operations.

    You have been given an array/list ‘A’ consisting of ‘N’ integers all of which are ‘0’ initially. You are given an array/list ‘ARR’ consisting ...

  • Ans. 

    The brute force approach is to do a linear search. Traverse the array and keep track of maximum and element. And finally return the maximum element. 
    Time Complexity : O(n)
    The efficient approach is to use Binary Search. The standard Binary search algorithm can be modified for the given type of arrays : 
    i) If the mid element is greater than both of its adjacent elements, then mid is the maximum. 
    ii) If mid...

  • Answered by CodingNinjas
  • Q2. Java Question

    Internal working of hash map in Java

  • Ans. 

    Index Calculation in Hashmap : 
    Hash code of key may be large enough to create an array. hash code generated may be in the range of integer and if we create arrays for such a range, then it will easily cause outOfMemoryException. So we generate index to minimize the size of array. Basically following operation is performed to calculate index : 
    index = hashCode(key) & (n-1).
    where n is number of buckets or t...

  • Answered by CodingNinjas
  • Q3. Java Question

    Why do we need to override equals and hashcode methods in Java?

  • Ans. 

    Two objects are considered equal only if their references point to the same object, and unless we override equals and hashCode methods, the class object will not behave properly on hash-based collections like HashMap, HashSet, and Hashtable. This is because hash-based collections are organized like a sequence of buckets, and the hash code value of an object is used to determine the bucket where the object would be stor...

  • Answered by CodingNinjas
Round 2 - Video Call 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round with questions based around Java.

  • Q1. OS Question

    Print even and odd numbers in increasing order using two threads in Java

  • Ans. 

    The idea is to create two threads and print even numbers with one thread and odd numbers with another thread. Below are the steps:

    Create two threads T1 and T2 using the below syntax, where T1 and T2 are used to print odd and even numbers respectively.
    Thread T1 = new Thread(new Runnable() {
    public void run() { mt.printEvenNumber(); }
    });

    Thread T2 = new Thread(new Runnable() {
    public void run() { mt.printOddNumber(); }
    });

    wh...

  • Answered by CodingNinjas
  • Q2. Java Question

    Internal working of CopyOnWrite ArrayList ?

  • Ans. 

    "Copy on write" means whenever there is write operation such as add, set and so on. it copies the underlying array. So it is a thread-safe variant of ArrayList in which all mutative operations (add, set, and so on) are implemented by making a fresh copy of the underlying array. So basic idea is whenever we add or remove to the CopyOnWriteArrayList, the underlying array is copied with the modification. Remember this poi...

  • Answered by CodingNinjas
  • Q3. Java Question

    Differences between Synchronized Collection and Concurrent Collection in Java

  • Ans. 

    1. Synchronized Collection can be modified by one thread at a time(i.e. it is not possible to modify or access Synchronized Collection by multiple threads simultaneously). Concurrent Collection can be modified by multiple threads at a time(i.e. it is possible to modify or access Concurrent Collection by multiple threads simultaneously).
    2. Concurrent Collection has high performance than Synchronized Collection because a...

  • Answered by CodingNinjas

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMorgan Stanley interview preparation:Topics to prepare for the interview - Java, Data Structures, Algorithms, System Design, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Thread concept is must for Morgan Stanley. So prepare that on priority
Tip 2 : Basic concepts of Oops/collection framework should be clear. 
Tip 3 : Array based program will be asked so have some hands-on.

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 interviewRejected

Skills evaluated in this interview

Java Developer interview

user image AG Tech

posted on 27 Nov 2021

Morgan Stanley interview questions for designations

 Senior Java Developer

 (2)

 Java Software Developer

 (1)

 Junior Java Developer

 (1)

 Java Full Stack Developer

 (1)

 Java Technical Lead

 (1)

 Software Developer

 (17)

 Senior Developer

 (2)

 Application Developer

 (1)

Interview questions from similar companies

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

(4 Questions)

  • Q1. Java streams on students
  • Q2. Select 8 form A,A
  • Q3. Basic java questions
  • Q4. Hibernate questions and database questions
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Indeed and was interviewed in Jul 2024. There was 1 interview round.

Round 1 - Technical 

(6 Questions)

  • Q1. Stringbuilder and string buffer diff
  • Q2. Where we store the object of string
  • Ans. 

    Objects of String are stored in the String Pool in Java.

    • String objects are stored in the String Pool, a special memory area in Java heap memory.

    • String literals are automatically stored in the String Pool.

    • String objects created using the new keyword are not stored in the String Pool.

    • String.intern() method can be used to store a String object in the String Pool.

  • Answered by AI
  • Q3. What is bean in springboot
  • Ans. 

    A bean in Spring Boot is a Java object that is instantiated, assembled, and managed by the Spring IoC container.

    • Beans are defined in the Spring configuration file or using annotations like @Component, @Service, @Repository, etc.

    • Beans are singleton by default but can be scoped as prototype, request, session, etc.

    • Beans are injected into other beans using dependency injection.

    • Example: @Component annotation is used to defi

  • Answered by AI
  • Q4. What is query parameters and path param
  • Ans. 

    Query parameters are used to pass data to a web server through the URL, while path parameters are part of the URL itself.

    • Query parameters are key-value pairs added to the end of a URL after a '?'

    • Path parameters are variables within the URL path itself, denoted by curly braces {}

    • Example of query parameter: www.example.com/api/users?id=123

    • Example of path parameter: www.example.com/api/users/{userId}

  • Answered by AI
  • Q5. Code snippet related to exception
  • Q6. Diff between exception and error
  • Ans. 

    Exceptions are recoverable errors that can be handled in code, while errors are unrecoverable issues that usually result in program termination.

    • Exceptions are checked at compile time, while errors are unchecked.

    • Exceptions are subclasses of Throwable, while errors are subclasses of Error.

    • Examples of exceptions include FileNotFoundException, NullPointerException, while examples of errors include OutOfMemoryError, StackOv

  • Answered by AI

Skills evaluated in this interview

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

I applied via Indeed and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. 1) How do you achieve concurrency in your current job, and write code for it? 2) Write code for Rest API using Springboot, need to write Entity, Service, Repository, and Controller classes? 3)Volatile keyw...
  • Ans. 

    Answers to common Java Developer interview questions

    • 1) Concurrency is achieved using multithreading in Java. Use threads, executors, or synchronized blocks. Example: using ExecutorService to run multiple tasks concurrently.

    • 2) Rest API in Springboot: Entity class defines database table, Service class contains business logic, Repository class interacts with database, Controller class handles HTTP requests.

    • 3) Volatile key...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Citicorp Java Developer interview:
  • exception handlin
  • multithreading
  • Springboot

Skills evaluated in this interview

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

I applied via Naukri.com and was interviewed in Oct 2023. There were 2 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 

(6 Questions)

  • Q1. Java 8 features, functional Interfaces and predefined functional interfaces, Streams
  • Q2. Collections, Aggregations, solid principles in Java
  • Q3. Design patterns, singleton and factory explain in detail
  • Ans. 

    Design patterns are reusable solutions to common problems in software design. Singleton ensures a class has only one instance, while factory creates objects without specifying the exact class.

    • Design patterns are best practices for solving common software design problems.

    • Singleton pattern ensures a class has only one instance and provides a global point of access to it.

    • Factory pattern creates objects without specifying ...

  • Answered by AI
  • Q4. Spring functions, Spring Runners, Spring Exception handling
  • Q5. Springboot annotations except common(any 5)
  • Q6. Write spring boot program to accept json as request. write the logic and explain
  • Ans. 

    Create a Spring Boot program to accept JSON requests and process the data.

    • Create a Spring Boot application with a REST controller to handle incoming JSON requests.

    • Use @PostMapping annotation to map the endpoint for accepting JSON requests.

    • Use @RequestBody annotation to bind the incoming JSON data to a Java object.

    • Process the JSON data as needed in the controller method.

    • Return a response as JSON if required.

  • Answered by AI

Skills evaluated in this interview

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

3 coding questions were given and to be solved only in java

I applied via Company Website and was interviewed in May 2022. There were 2 interview rounds.

Round 1 - Coding Test 

Java coding and apptitude questions

Round 2 - HR 

(2 Questions)

  • Q1. Tell me about project
  • Ans. 

    I worked on a project to develop a web application for an e-commerce company.

    • Developed the front-end using HTML, CSS, and JavaScript

    • Implemented the back-end using Java and Spring framework

    • Integrated payment gateway and order management system

    • Optimized database queries for improved performance

  • Answered by AI
  • Q2. Tell about previous company
  • Ans. 

    I worked at XYZ Company as a Java Developer.

    • Developed and maintained Java applications for XYZ Company.

    • Collaborated with a team of developers to implement new features and fix bugs.

    • Used Java frameworks like Spring and Hibernate to build robust and scalable applications.

    • Worked on database design and optimization using SQL.

    • Participated in code reviews and provided feedback to improve code quality.

    • Implemented unit tests t...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - It's a good opportunity and interview was good hr was gentle

Morgan Stanley Interview FAQs

How many rounds are there in Morgan Stanley Java Developer interview?
Morgan Stanley interview process usually has 1 rounds. The most common rounds in the Morgan Stanley interview process are Coding Test and Technical.
How to prepare for Morgan Stanley 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 Morgan Stanley. The most common topics and skills that interviewers at Morgan Stanley expect are Investment Banking, Financial Services, Core Java, Unix and Wealth Management.
What are the top questions asked in Morgan Stanley Java Developer interview?

Some of the top questions asked at the Morgan Stanley Java Developer interview -

  1. Reverse string with spaces but keep the space position int...read more
  2. Quick sort - keep order s...read more

Tell us how to improve this page.

People are getting interviews through

based on 2 Morgan Stanley interviews
Company Website
Job Portal
50%
50%
Moderate Confidence
?
Moderate Confidence means the data is based on a sufficient number of responses received from the candidates
Morgan Stanley Java Developer Salary
based on 42 salaries
₹8.2 L/yr - ₹35.9 L/yr
250% more than the average Java Developer Salary in India
View more details
Associate
3k salaries
unlock blur

₹5.1 L/yr - ₹19.1 L/yr

Senior Manager
2.5k salaries
unlock blur

₹15.9 L/yr - ₹54 L/yr

Manager
2k salaries
unlock blur

₹10.6 L/yr - ₹42 L/yr

Senior Associate
1.5k salaries
unlock blur

₹7.1 L/yr - ₹26 L/yr

Vice President
1.2k salaries
unlock blur

₹21 L/yr - ₹80 L/yr

Explore more salaries
Compare Morgan Stanley with

JPMorgan Chase & Co.

4.0
Compare

Goldman Sachs

3.6
Compare

TCS

3.7
Compare

Deloitte

3.8
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