Upload Button Icon Add office photos

Morgan Stanley

Compare button icon Compare button icon Compare

Filter interviews by

Morgan Stanley Software Developer Interview Questions, Process, and Tips for Experienced

Updated 21 Jan 2025

Top Morgan Stanley Software Developer Interview Questions and Answers for Experienced

  • Q1. Given an array with length n , find highest value which occurs same number of times within the array. [3,8,3,2,1,3,2] 3 occurs 3 times output=3. [4,6,7,6,7,5,4,2,4,9,4,1, ...read more
  • Q2. Candies Distribution Problem Statement Prateek is a kindergarten teacher with a mission to distribute candies to students based on their performance. Each student must g ...read more
  • Q3. Trapping Rainwater Problem Statement You are given an array ARR of long type, which represents an elevation map where ARR[i] denotes the elevation of the i th bar. Calcu ...read more
View all 13 questions

Morgan Stanley Software Developer Interview Experiences for Experienced

3 interviews found

I applied via Referral and was interviewed in Apr 2021. There were 4 interview rounds.

Interview Questionnaire 

11 Questions

  • Q1. Basic Java concepts like abstraction, JDK 1.8 architecture brief overview.
  • Q2. What is weak reference? garbage collection in case of such references?
  • Ans. 

    Weak reference is a reference that does not prevent the object from being garbage collected.

    • Weak references are used to refer to objects that can be garbage collected if there are no strong references to them.

    • They are typically used in scenarios where you want to hold a reference to an object, but don't want to prevent it from being collected.

    • Weak references are implemented using weak reference queues, which allow you ...

  • Answered by AI
  • Q3. Implementation of singleton pattern and ways of breaking it? singleton pattern implementation in a multithreaded environment?
  • Ans. 

    Singleton pattern ensures a class has only one instance, while allowing global access to it.

    • Implement a private constructor to prevent direct instantiation.

    • Create a static method to provide a single point of access to the instance.

    • Use lazy initialization to create the instance only when needed.

    • Ensure thread safety in a multithreaded environment using synchronization or double-checked locking.

    • Breaking the singleton patt...

  • Answered by AI
  • Q4. Annotations : @Component vs @service, @Controller vs @RESTController, @Configuration, @Transactional
  • Ans. 

    Annotations used in Spring Framework for defining components and services.

    • Annotations like @Component, @Service, and @Controller are used for defining components in Spring Framework.

    • @RestController is used for defining RESTful web services.

    • @Configuration is used for defining configuration classes.

    • @Transactional is used for defining transactional methods.

    • All these annotations help in defining and managing dependencies i

  • Answered by AI
  • Q5. Internal implementation of HashSet? Which scenario will generate same hashcode for a HashMap?
  • Ans. 

    HashSet is implemented using a HashMap internally. Same hashcode is generated when two objects have the same value for hashCode() and equals() methods.

    • HashSet internally uses a HashMap to store its elements.

    • The hashcode of an object is generated using the hashCode() method.

    • If two objects have the same value for hashCode() and equals() methods, they will generate the same hashcode.

    • For example, if two String objects have...

  • Answered by AI
  • Q6. What is SQL Cursor? Index? Aggregate Functions examples?
  • Ans. 

    SQL Cursor is a database object used to manipulate data row by row.

    • Cursor is used to fetch and process data row by row

    • Index is a database object used to speed up data retrieval

    • Aggregate functions are used to perform calculations on a set of values

    • Examples of aggregate functions are SUM, AVG, COUNT, MAX, MIN

  • Answered by AI
  • Q7. Basic Java programming question:- Generate palindrome string inputs for the program are length of the string and number of distinct characters. If n=5 & k=2 output = ababa/zzdzz/rerer. If n=7 & k=3 output=...
  • Ans. 

    Generate palindrome string with given length and distinct characters.

    • Create a char array of length n and fill it with distinct characters.

    • Loop through the array and add the characters in reverse order to create a palindrome.

    • Repeat the process until the required number of palindromes are generated.

    • If k is less than the length of the palindrome, use the first k distinct characters.

  • Answered by AI
  • Q8. Given an array with length n , find highest value which occurs same number of times within the array. [3,8,3,2,1,3,2] 3 occurs 3 times output=3. [4,6,7,6,7,5,4,2,4,9,4,1,9] 4 occurs 3 times output=4
  • Ans. 

    Find the highest value that occurs the same number of times within an array.

    • Iterate through the array and count the occurrences of each value.

    • Store the counts in a dictionary or hash map.

    • Find the maximum count and check which value(s) have that count.

    • Return the highest value among those with the maximum count.

  • Answered by AI
  • Q9. Find number of occurrences of a character in string. Provide multiple approaches for the solution and choose the best why? For "string aabcadd output=a3b1c1d2
  • Ans. 

    Count occurrences of a character in a string and output in a specific format.

    • Use a hash table to store the count of each character.

    • Loop through the string and update the count in the hash table.

    • Create the output string using the hash table.

  • Answered by AI
  • Q10. Convert String from Camel case to Snake case
  • Ans. 

    Converts a string from Camel case to Snake case.

    • Loop through the string and check for uppercase letters

    • Insert an underscore before each uppercase letter

    • Convert the string to lowercase

  • Answered by AI
  • Q11. Given a class @Data class Account{String name; String acctBalance;}. Write logic to get Map using Stream API which shows the balance of each person i,e, key will be the name of the account holder and valu...
  • Ans. 

    Logic to get Map using Stream API to show balance of each person

    • Use Stream API to group accounts by name

    • Use map() to get the sum of balances for each group

    • Collect the results into a Map

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Marvelous interview experience. Although it was 7 rounds of process, each interviewer was best at his/her way.
Initial 2 rounds of interview will bring blood out of your veins , later rounds will bring a little pumping.

Skills evaluated in this interview

I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Check palindrome , anagram of string with O(n)
  • Ans. 

    To check palindrome and anagram of a string with O(n), use a hash table to store character frequencies.

    • Create a hash table to store the frequency of each character in the string.

    • For palindrome, check that no more than one character has an odd frequency.

    • For anagram, compare the hash tables of the two strings.

    • If the hash tables are equal, the strings are anagrams.

    • If the hash tables differ by only one character, the strin...

  • Answered by AI
  • Q2. Optimized solutions and core principles applied in OOPS
  • Ans. 

    Optimized solutions and core principles applied in OOPS

    • Encapsulation, Inheritance, Polymorphism, Abstraction are core principles of OOPS

    • Optimized solutions can be achieved through efficient algorithms and data structures

    • Design patterns like Singleton, Factory, Observer can also be used for optimized solutions

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - They are looking for best possible solutions. and they are not using that in project then also they ask

Skills evaluated in this interview

Software Developer Interview Questions Asked at Other Companies for Experienced

asked in Amazon
Q1. Fenwick Tree Problem Statement You are provided with an array/lis ... read more
asked in Infosys
Q2. 1. what is the difference between exception and error. How did u ... read more
asked in Amazon
Q3. Fire in the Cells Problem Statement Given a matrix MAT of size N ... read more
asked in Amazon
Q4. Find All Pairs Adding Up to Target Given an array of integers ARR ... read more
Q5. Chess Tournament Problem Statement In Ninjaland, a chess tourname ... read more

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 90 minutes
Round difficulty - Medium

It was a cumulative test

  • Q1. 

    Trapping Rainwater Problem Statement

    You are given an array ARR of long type, which represents an elevation map where ARR[i] denotes the elevation of the ith bar. Calculate the total amount of rainwater t...

  • Ans. 

    Calculate the total amount of rainwater that can be trapped within given elevation map.

    • Iterate through the array to find the maximum height on the left and right of each bar.

    • Calculate the amount of water that can be trapped above each bar by taking the minimum of the maximum heights on the left and right.

    • Sum up the trapped water above each bar to get the total trapped water for the elevation map.

  • Answered by AI
Round 2 - Coding Test 

(1 Question)

Round duration - 90 minutes
Round difficulty - Medium

It was sophisticated in nature and a good brain buster.

  • Q1. 

    Candies Distribution Problem Statement

    Prateek is a kindergarten teacher with a mission to distribute candies to students based on their performance. Each student must get at least one candy, and if two s...

  • Ans. 

    Determine the minimum number of candies needed to distribute to students based on their performance and ratings.

    • Iterate through the array of student ratings and assign 1 candy to each student initially.

    • Then iterate from left to right and check if the current student's rating is higher than the previous student, if so, assign candies accordingly.

    • Similarly, iterate from right to left to handle cases where the current stu...

  • Answered by AI
Round 3 - Face to Face 

(1 Question)

Round duration - 1 hour
Round difficulty - Medium

  • Q1. DBMS

    It revolved around basic concepts

  • Ans. 

    DBMS is a software system that manages databases and allows users to interact with data stored in them.

    • DBMS stands for Database Management System

    • It helps in creating, updating, and managing databases

    • Examples of DBMS include MySQL, Oracle, SQL Server

    • It ensures data integrity, security, and efficient retrieval

  • Answered by AI
Round 4 - Group Discussion 

Round duration - 70 minutes
Round difficulty - Hard

It was a great experience

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in HyderabadEligibility criteriaGood Resume and 7 CGPA +Morgan Stanley interview preparation:Topics to prepare for the interview - I have done a rigourous training on Data Structure and Algorithms. It really helped me a lot to excel in life. Also I did vocational courses which enhanced my personality. I did analytical mindset training with problem solving methodologies. The hands on training on Python and Unix helped me a lot.Time required to prepare for the interview - 8 monthsInterview preparation tips for other job seekers

Tip 1 : Stay consistent with your efforts
Tip 2 : Work hard with honesty
Tip 3 : Try to set goal of +1 level from the goal you want to achieve

Application resume tips for other job seekers

Tip 1 : Present yourself with honesty
Tip 2 : Mention about the Workshops, hackathons, achievements, and the projects.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

I appeared for an interview in May 2017.

Interview Questionnaire 

6 Questions

  • Q1. Can string class be extended
  • Ans. 

    Yes, the string class can be extended in most programming languages.

    • Inheritance can be used to extend the functionality of the string class.

    • By creating a new class that inherits from the string class, additional methods and properties can be added.

    • Extending the string class allows for customization and adding specific functionality to strings.

    • Example: In Python, the string class can be extended by creating a new class

  • Answered by AI
  • Q2. What are the implecit object in JSP
  • Ans. 

    Implicit objects in JSP are predefined objects that are available for use without any declaration or initialization.

    • Implicit objects in JSP include request, response, session, application, out, config, pageContext, page, exception, and others.

    • These objects provide access to various aspects of the JSP environment and can be used to perform common tasks.

    • For example, the request object allows access to HTTP request parame...

  • Answered by AI
  • Q3. How does hash map works
  • Ans. 

    A hash map is a data structure that uses a hash function to map keys to values.

    • Hash map stores key-value pairs

    • It uses a hash function to compute an index for each key

    • Collisions can occur when two keys hash to the same index

    • Hash maps provide fast access to values based on their keys

  • Answered by AI
  • Q4. Difference between string buffer and string builder
  • Ans. 

    StringBuffer and StringBuilder are both used to manipulate strings, but StringBuffer is thread-safe while StringBuilder is not.

    • StringBuffer is synchronized, making it safe for use in multi-threaded environments.

    • StringBuilder is not synchronized, making it faster but not thread-safe.

    • StringBuffer is preferred when multiple threads are involved, while StringBuilder is preferred for single-threaded scenarios.

    • Both classes p...

  • Answered by AI
  • Q5. What is MVC
  • Ans. 

    MVC is a software architectural pattern that separates an application into three main components: Model, View, and Controller.

    • Model represents the data and business logic of the application.

    • View is responsible for displaying the user interface.

    • Controller handles user input, updates the model, and interacts with the view.

    • MVC promotes separation of concerns and modularity in software development.

    • Example: In a web applica...

  • Answered by AI
  • Q6. What are the annotation used in RESTFULL web services
  • Ans. 

    Annotations used in RESTful web services

    • 1. @Path - Specifies the URI path for the resource

    • 2. @GET - Specifies that the method handles HTTP GET requests

    • 3. @POST - Specifies that the method handles HTTP POST requests

    • 4. @PUT - Specifies that the method handles HTTP PUT requests

    • 5. @DELETE - Specifies that the method handles HTTP DELETE requests

    • 6. @PathParam - Binds the value of a URI template parameter to a method paramete...

  • Answered by AI

Interview Preparation Tips

Skills: Java Application Development

Skills evaluated in this interview

Interview Questionnaire 

11 Questions

  • Q1. What is the difference between multi tasking, multi processing and multi programming operating systems with examples ?
  • Ans. 

    Multi tasking, multi processing, and multi programming are different approaches to managing tasks in an operating system.

    • Multi tasking allows multiple tasks to run concurrently on a single processor.

    • Multi processing involves multiple processors running tasks simultaneously.

    • Multi programming allows multiple programs to be loaded into memory and executed concurrently.

    • Examples of multi tasking operating systems include Wi...

  • Answered by AI
  • Q2. Tell me about memory allocation (stack vs. heap)?
  • Ans. 

    Memory allocation refers to the process of assigning memory to programs during runtime.

    • Stack allocation is done automatically and is limited in size.

    • Heap allocation is done manually and is larger in size.

    • Stack memory is used for local variables and function calls.

    • Heap memory is used for dynamic memory allocation.

    • Memory leaks can occur if heap memory is not properly managed.

  • Answered by AI
  • Q3. You have two threads one printing even numbers in order and other odd numbers. Design an algorithm so that it prints numbers in natural order?
  • Ans. 

    Use a shared variable and synchronization mechanisms to ensure natural order printing of numbers.

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

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

    • Implement synchronization mechanisms like locks or semaphores to ensure only one thread can access the shared variable at a time.

    • Each thread should check if it is i...

  • Answered by AI
  • Q4. Print a matrix in spiral order?
  • Ans. 

    Printing a matrix in spiral order

    • Start from the first element and print it

    • Move in a spiral order towards the center of the matrix

    • Repeat until all elements are printed

  • Answered by AI
  • Q5. Thread class and Runnable Interface?
  • Ans. 

    Thread class and Runnable Interface are used for multithreading in Java.

    • Thread class is a predefined class in Java that provides methods to create and control threads.

    • Runnable interface is used to define a task that can be executed by a thread.

    • Thread class implements Runnable interface.

    • Thread class provides more control over threads than Runnable interface.

    • Example: Thread t = new Thread(new MyRunnable()); t.start();

    • Exa...

  • Answered by AI
  • Q6. What’s the difference between a Linked List and an ArrayList and give me an example of when to use which?
  • Ans. 

    Linked List is a dynamic data structure while ArrayList is a static data structure.

    • Linked List is best for frequent insertion and deletion operations.

    • ArrayList is best for frequent access operations.

    • Linked List uses more memory than ArrayList.

    • ArrayList is faster than Linked List for accessing elements.

    • Use Linked List when you need to frequently add or remove elements from the list.

    • Use ArrayList when you need to frequen

  • Answered by AI
  • Q7. Questions of OS concepts?
  • Q8. A role play scenario was given. With a clear instruction on I don’t need to know the basis and the hypothetical assumption was presented. I was told that I was expected to respond to the given scenario, in...
  • Q9. Why are you interested in a career in investment banking?
  • Ans. 

    I am not interested in a career in investment banking.

    • I am more interested in a career in software development

    • I enjoy problem-solving and creating innovative solutions through coding

    • Investment banking does not align with my passion and skill set

  • Answered by AI
  • Q10. Why have you chosen to apply to J.P. Morgan?
  • Ans. 

    I have chosen to apply to J.P. Morgan because of their reputation, global presence, and opportunities for growth.

    • J.P. Morgan has a strong reputation in the financial industry.

    • They have a global presence with offices in multiple countries.

    • The company offers various opportunities for career growth and development.

    • J.P. Morgan is known for its innovative technology solutions in the financial sector.

    • I am impressed by their ...

  • Answered by AI
  • Q11. Have you ever made a mistake? Tell us about it?
  • Ans. 

    Yes, I have made a mistake in my previous project.

    • I underestimated the complexity of a task and ended up missing the deadline.

    • I failed to properly test a feature, resulting in a bug that affected user experience.

    • I accidentally deleted an important file without having a backup.

    • I misunderstood a requirement and implemented a feature incorrectly.

  • Answered by AI

Interview Preparation Tips

Round: Test
Total Questions: 1

General Tips: Interview Process: Aptitude test, followed by 3 rounds of interview. Interview process was very good. Just be positive to clear the interview.
Check this link before appearing for interview with JP Morgan. It will help  -----
Skills: Algorithm, Data structure, Stack
College Name: Na

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: The test was for two and half hours where 1 hour was for general aptitude, 1 hr was for coding aptitude(either on java or C or C++as you choose) and 1/2 an hour for two coding questions.

Round: Technical Interview
Experience: In technical round they asked puzzles, aptitude questions and basic C coding. I was asked to write the code for two questions(one was on sort and search) and was asked the logic of two questions.They asked basics of linked lists, stacks, queues. Infact they were not very interested in the syntax and were pressing on the logic

General Tips: Being a non software branch students is not at all a problem. The company took 4 interns where 3 were from core branches. The fact that we had to work in JAVA and most of us didn't know JAVA, the company only looks for aptitude and ability to learn. So if you don't know anything, tell frankly that you don't know that part, rather than guessing. Be thorough with what you know and confidentially answer all the questions.
Also do not be tensed and take things lightly, if the interviewer is joking. Be candid.
Skill Tips: Learn basics of coding from books . Aptitude can be done from sites likes geeks for geeks, etc. The level of aptitude is not very high and infact the coding aptitude is also theoretical and does not involve in depth knowledge.
Skills:
College Name: NIT Surathkal

Interview Preparation Tips

Round: Test
Experience: Online Test (General aptitude, C aptitude ,Programming problems).

General Tips: Study basics of C and DSA well. Utilize the last summer vacations for studying for placements. Be confident and Honest.
Yes it is challenging and exhausting. It tests your patience. But final reward is also great so we must keep going toward it.
Skill Tips: Online coding sites such as Codechef, etc. Narasimha Karumanchi for data structures and algorithm will help in preparation.
Skills:
College Name: NIT Surathkal

I applied via Campus Placement

Interview Questionnaire 

2 Questions

  • Q1. How can a chemical Engineer help citi?
  • Ans. 

    A chemical engineer can help Citi by providing expertise in process optimization, risk management, and sustainability.

    • Optimizing Citi's manufacturing processes to reduce costs and increase efficiency

    • Developing risk management strategies to ensure compliance with environmental regulations

    • Implementing sustainable practices to reduce Citi's environmental impact

    • Providing technical expertise in chemical reactions and materi...

  • Answered by AI
  • Q2. He asked me about my JEE Rank, preparations

Interview Preparation Tips

Round: HR Interview
Experience: I had done many web and android apps. They asked me about my institute experience, things I have done here. It was an easy walk for me.

Skills: SQL, Java Programming
Duration: 2
College Name: IIT Madras

I appeared for an interview before Sep 2020.

Round 1 - Face to Face 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

It was in the day time. I was asked the programming language of my choice. It was mostly focused on programming fundamentals. I was asked 2 questions based on Data Structures and Algorithms.

  • Q1. How can you detect a loop in a linked list?
  • Ans. 

    A loop in a linked list can be detected using Floyd's Cycle Detection Algorithm.

    • Use two pointers - slow and fast, where slow moves one step at a time and fast moves two steps at a time.

    • If there is a loop, the two pointers will eventually meet at some point within the loop.

    • To detect the start of the loop, reset one pointer to the head and move both pointers one step at a time until they meet again.

  • Answered by AI
Round 2 - Face to Face 

Round duration - 30 minutes
Round difficulty - Easy

This round was mostly focused on my resume and projects.

Round 3 - Face to Face 

Round duration - 30 minutes
Round difficulty - Easy

It was in the evening. I went to their office in Gurgaon. It was taken by one of the technology director who had a lot of experience. 
 

Interview Preparation Tips

Professional and academic backgroundI completed Information Technology from Bharati Vidyapeeth's College of Engineering. I applied for the job as SDE - 1 in GurgaonAmerican Express interview preparation:Topics to prepare for the interview - Data structures and algorithms, Object-Oriented Programming System concepts, Database Management System, Operating System, Networking.Time required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Do practice a lot of data structures questions as mostly questions in interviews are based on them. Also, do prepare for projects mentioned in your resume and skills which you have mentioned. Coding ninjas has a big hand in making my interview clear as I have taken a course from the coding Ninjas which helped me a lot to make my concepts clear.

Application resume tips for other job seekers

Keep it short and crisp. Go through it properly before the interview. Make sure that you haven't put anything in it that can cause you problems during the interview.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Questionnaire 

1 Question

  • Q1. All questions are related to ds and algorithm. Implications of data structure

Morgan Stanley Interview FAQs

How many rounds are there in Morgan Stanley Software Developer interview for experienced candidates?
Morgan Stanley interview process for experienced candidates usually has 2-3 rounds. The most common rounds in the Morgan Stanley interview process for experienced candidates are Technical, Coding Test and HR.
How to prepare for Morgan Stanley Software Developer interview for experienced candidates?
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 Agile, Core Java, Data Modeling, JSON and Linux.
What are the top questions asked in Morgan Stanley Software Developer interview for experienced candidates?

Some of the top questions asked at the Morgan Stanley Software Developer interview for experienced candidates -

  1. Given an array with length n , find highest value which occurs same number of t...read more
  2. Given a class @Data class Account{String name; String acctBalance;}. Write logi...read more
  3. What is weak reference? garbage collection in case of such reference...read more

Tell us how to improve this page.

Morgan Stanley Software Developer Salary
based on 197 salaries
₹12 L/yr - ₹40 L/yr
170% more than the average Software Developer Salary in India
View more details

Morgan Stanley Software Developer Reviews and Ratings

based on 23 reviews

3.9/5

Rating in categories

3.5

Skill development

4.1

Work-life balance

3.6

Salary

3.3

Job security

4.1

Company culture

3.5

Promotions

3.7

Work satisfaction

Explore 23 Reviews and Ratings
Associate
3.3k salaries
unlock blur

₹5.2 L/yr - ₹21 L/yr

Senior Manager
2.5k salaries
unlock blur

₹16 L/yr - ₹54 L/yr

Manager
1.9k salaries
unlock blur

₹10.6 L/yr - ₹42 L/yr

Senior Associate
1.6k salaries
unlock blur

₹7.1 L/yr - ₹27 L/yr

Vice President
1.4k salaries
unlock blur

₹21 L/yr - ₹80 L/yr

Explore more salaries
Compare Morgan Stanley with

JPMorgan Chase & Co.

3.9
Compare

Goldman Sachs

3.5
Compare

TCS

3.7
Compare

Deloitte

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview