Upload Button Icon Add office photos

Filter interviews by

Morgan Stanley Java Software Developer Interview Questions, Process, and Tips

Updated 22 Nov 2021

Morgan Stanley Java Software Developer Interview Experiences

1 interview found

I applied via Naukri.com and was interviewed in Oct 2021. There was 1 interview round.

Interview Questionnaire 

5 Questions

  • Q1. Oops concepts: pass by value in Java Parent reference to child object
  • Q2. Thread: print odd and even number in sequence using Threads
  • Ans. 

    Printing odd and even numbers in sequence using threads.

    • Create two threads, one for odd and one for even numbers.

    • Use a shared variable to keep track of the current number.

    • Use synchronized block to ensure only one thread is executing at a time.

    • Use wait() and notify() methods to signal the other thread.

    • Terminate the threads when the desired number of iterations is reached.

  • Answered by AI
  • Q3. Concurrent package: internal working of CopyOnWriteArrayList Diff between synchronized collection and concurrent collection
  • Ans. 

    Explaining CopyOnWriteArrayList and difference between synchronized and concurrent collections.

    • CopyOnWriteArrayList is a thread-safe variant of ArrayList where all mutative operations are implemented by making a new copy of the underlying array.

    • Synchronized collections use a single lock to synchronize access to the collection, while concurrent collections use multiple locks to allow concurrent access.

    • Concurrent collect...

  • Answered by AI
  • Q4. Write program to find the largest number present in array having increasing then decreasing numbers.
  • Ans. 

    Program to find largest number in array with increasing then decreasing numbers.

    • Find the peak element in the array using binary search.

    • If peak element is at index 0 or last index, return it.

    • Else, search for largest element in left and right subarrays.

  • Answered by AI
  • Q5. Working of HashMap Use of Equals and Hashcode method in case of HashMap
  • Ans. 

    HashMap is a data structure that stores key-value pairs and uses hashcode and equals methods for efficient retrieval.

    • HashMap uses hashcode to generate an index for the key-value pair

    • If two keys have the same hashcode, equals method is used to check for equality

    • If equals method returns true, the value associated with the key is returned

    • If equals method returns false, a collision occurs and the key-value pair is stored i

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Interview was technical one. It lasted for 1 hr.
Most of the question asked were related to my work.
Thread concept is must for Morgan Stanley. So prepare that on priority. Basic concepts of Oops/collection framework should be clear. Array based program will be asked so have some hands-on.

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
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 

(1 Question)

  • Q1. Question on Core Java, Spring, Spring Boot.
Round 3 - Behavioral 

(1 Question)

  • Q1. Manager asked about previous experience and project.
Round 4 - HR 

(1 Question)

  • Q1. Salary Nigotiation
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
No response

I was interviewed in Oct 2024.

Round 1 - Technical 

(4 Questions)

  • Q1. Spring cloud gateway
  • Q2. JWT Token structure and details
  • Ans. 

    JWT token is a JSON web token used for authentication and contains three parts: header, payload, and signature.

    • JWT token consists of three parts: header, payload, and signature.

    • Header contains the type of token and the signing algorithm used.

    • Payload contains claims about the user and additional data.

    • Signature is used to verify that the sender of the JWT is who it says it is.

    • JWT tokens are encoded and can be easily deco...

  • Answered by AI
  • Q3. Java 11 features
  • Q4. Stream related problems
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
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

MCQ test consisting of 70 mcqs in 75 minutes from aptitude english and cs fundamentals. If cleared next paper 2 coding qs medium level

Round 2 - Technical 

(2 Questions)

  • Q1. Two sum leetcode problem
  • Q2. What problems you faced in your project
  • Ans. 

    I faced challenges with integrating third-party APIs and debugging complex logic.

    • Difficulty in understanding and implementing third-party APIs

    • Issues with data synchronization between different systems

    • Troubleshooting complex logic errors

    • Managing dependencies and version conflicts

    • Time constraints affecting problem-solving

  • Answered by AI
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. How is transaction managed in microservices architecture?
  • Ans. 

    Transactions in microservices are managed using distributed transactions or compensating transactions.

    • Distributed transactions involve multiple microservices coordinating with a transaction manager to ensure data consistency across services.

    • Compensating transactions involve each microservice having a compensating action to rollback changes if a transaction fails.

    • Saga pattern is commonly used in microservices to manage ...

  • Answered by AI
  • Q2. Questions about java garbage collection

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

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

Round 1 - Technical 

(2 Questions)

  • Q1. Functional interface
  • Q2. Find if array of numbers, which are prime, using streams
  • Ans. 

    Use streams to find prime numbers in an array

    • Use Java streams to filter out non-prime numbers from the array

    • Check if a number is prime by dividing it by all numbers less than its square root

    • Create a method to check if a number is prime

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Basics, functional interfaces, REST security

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Coding Test 

DP graphs strings it was good

Round 2 - Technical 

(2 Questions)

  • Q1. Reverse a linkded list
  • Ans. 

    Reverse a linked list by changing the direction of pointers

    • Start with three pointers: current, previous, and next

    • Iterate through the list, updating pointers to reverse the direction

    • Return the new head of the reversed list

  • Answered by AI
  • Q2. Print fibonacci series
  • Ans. 

    The Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.

    • Start with two variables initialized to 0 and 1

    • Loop through desired number of iterations, adding the previous two numbers to get the next number

    • Print or store each number in the series

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - Technical 

(2 Questions)

  • Q1. What are checked and unchecked exceptions?
  • Ans. 

    Checked exceptions are exceptions that must be either caught or declared in the method signature, while unchecked exceptions do not need to be caught or declared.

    • Checked exceptions are subclasses of Exception class, excluding RuntimeException and Error.

    • Checked exceptions are checked at compile time, so the compiler forces the programmer to handle them.

    • Unchecked exceptions are subclasses of RuntimeException and Error cl...

  • Answered by AI
  • Q2. What is the difference between Spring and SpringBoot?
  • Ans. 

    Spring is a framework for building Java applications, while SpringBoot is a tool that simplifies the setup and configuration of Spring applications.

    • Spring is a comprehensive framework that provides various modules for different functionalities like dependency injection, aspect-oriented programming, etc.

    • SpringBoot is an opinionated tool that simplifies the setup and configuration of Spring applications by providing defa...

  • Answered by AI

Skills evaluated in this interview

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

Easy medium and hard questions

Round 2 - Technical 

(3 Questions)

  • Q1. DBMS OS STACKS QUEUES
  • Q2. NORMALISATION IN DBMS
  • Ans. 

    Normalization in DBMS is the process of organizing data in a database to reduce redundancy and improve data integrity.

    • Normalization involves breaking down a database into smaller, more manageable tables and defining relationships between them.

    • It helps in reducing data redundancy by storing data in a structured and organized manner.

    • Normalization also helps in improving data integrity by ensuring that data is consistent ...

  • Answered by AI
  • Q3. OUTPUT QUESTION IN JAVASCRIPT
Round 3 - HR 

(1 Question)

  • Q1. GENERIC HR STUFF

Interview Preparation Tips

Interview preparation tips for other job seekers - Be thorough with os dbms ooops system design and dsa

Morgan Stanley Interview FAQs

What are the top questions asked in Morgan Stanley Java Software Developer interview?

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

  1. Concurrent package: internal working of CopyOnWriteArrayList Diff between sync...read more
  2. Write program to find the largest number present in array having increasing the...read more
  3. Working of HashMap Use of Equals and Hashcode method in case of Hash...read more

Tell us how to improve this page.

People are getting interviews through

based on 1 Morgan Stanley interview
Job Portal
100%
Low Confidence
?
Low Confidence means the data is based on a small number of responses received from the candidates.

Interview Questions from Similar Companies

Wells Fargo Interview Questions
3.9
 • 545 Interviews
HSBC Group Interview Questions
4.0
 • 477 Interviews
Goldman Sachs Interview Questions
3.6
 • 401 Interviews
American Express Interview Questions
4.2
 • 352 Interviews
Deutsche Bank Interview Questions
3.9
 • 350 Interviews
UBS Interview Questions
4.0
 • 340 Interviews
BNY Interview Questions
4.0
 • 325 Interviews
Citicorp Interview Questions
3.7
 • 274 Interviews
Barclays Interview Questions
3.9
 • 263 Interviews
View all
Associate
2.9k salaries
unlock blur

₹5.2 L/yr - ₹19.5 L/yr

Senior Manager
2.5k salaries
unlock blur

₹15.9 L/yr - ₹54 L/yr

Manager
1.9k salaries
unlock blur

₹10.6 L/yr - ₹42 L/yr

Senior Associate
1.4k salaries
unlock blur

₹7 L/yr - ₹25.5 L/yr

Vice President
1.2k salaries
unlock blur

₹20.7 L/yr - ₹80 L/yr

Explore more salaries
Compare Morgan Stanley with

JPMorgan Chase & Co.

4.1
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