
Morgan Stanley Java Developer Interview Questions
& Process
Real candidates share what happened, how many rounds they had,
and how the experience turned out.
Based on 75 interview experiences · FREE TO READ
Candidate interview experiences
First-hand accounts from people who interviewed at Morgan Stanley.
Java Developer
So the interview was pretty put together and professional. First, there was like a screening chat about my background, what I've done, and my tech skills. Then, a technical interview happened, which was all about Java, Spring Boot, REST APIs, and system design stuff, plus some questions about solving problems in certain situations. The last part was a behavioral interview, asking questions about situations and my abilities to see how I communicate, work with others, and solve problems. The whole thing went well, the interviewers were nice and clear, and I got a good feel for what the company and the job are like.
- Can you share some basic coding questions?
Senior Java Developer
The interview went pretty good. It started with some basic Java questions on data types, collections, and exception handling. They also asked about OOPs concepts like encapsulation, inheritance, polymorphism, and abstraction and how they are used in real projects. Then, we talked about the Spring framework, specifically Spring Boot annotations, dependency injection, and the differences between @Component, @Service, and @Repository. They also asked about Spring Data JPA and handling transactions. After that, I had to look at a couple of code snippets and figure out what the output would be, testing my knowledge of Java syntax, control flow, and tricky cases. Finally, there was a coding question that involved arrays and searching, where I had to write a good, fast solution. It was a solid mix of theory and practice covering core Java, Spring, and problem-solving.
- What's the distinction between @Component, @Service, and @Repository annotations in Spring?
Java Engineer
A recruiter from an agency hit me up on LinkedIn and told me about this job. Soon after, I had this Hackerrank test with 9 questions, 90 minutes total. The first 6 were multiple choice, and the last 3 were coding problems from their usual bank. The coding part started easy, then medium, then advanced, but I couldn't finish the last two; I only got a partial solution for the second to last one, and it timed out. But, that was good enough to move on. Then I had 3 interviews, talking to people from like 5+ teams. They briefly asked about me, but the main thing was live coding, which was a bit different in each interview. It was on a custom Hackerrank page where they could see me type in real-time, and I had to talk through my thought process. It was easier than the first round; I guess I landed in the medior or junior range after the first test, so they didn't throw super hard problems at me. Pretty quickly, one team said they were really interested, and we could proceed. So, I had a call with an Executive Director, which was a pretty standard manager interview. Finally, HR called with an offer. I never really got to meet the people I'd be working with, and they didn't do much to make the job sound exciting, but they did offer 25% more than any other place.
- What's the minimum number of swaps needed to sort an array?
- Can you solve the Portfolio balances problem from Hackerrank?
- Regarding the code `private static void function(int n) { if (n > 0) function(n - 1); System.out.print(n); } function(5);`, what output will this call produce? What would be the result if the recursive call was changed to `n--` or `--n`?
Morgan Stanley Java Developer Interview Questions
Quoted word for word from Morgan Stanley interview reports.
“Write a function to remove duplicate elements from a sorted array efficiently, using constant extra space (O(1)).”
Read reports →“Given an ArrayList of integers, first determine if it contains any duplicate values. If no duplicates are found, return false. If duplicates exist, return true and also identify what those duplicate elements are.”
Read reports →“Write a program with O(n) complexity to build pairs from an array of integers that sum up to a specific number.”
Read reports →“Regarding the code `private static void function(int n) { if (n > 0) function(n - 1); System.out.print(n); } function(5);`, what output will this call produce? What would be the result if the recursive call was changed to `n--` or `--n`?”
Read reports →“Given an input string and a list of proper nouns, can you identify which words are proper nouns and which are not?”
Read report →“Explain how to print a number in English words, using the example that 4563 should be "four thousand six hundred three".”
Read report →“When you divide an array's size by two, and then need to round off the result to an integer, what is the outcome?”
Read report →“Could you write code to determine if an uppercase letter in a given string has a corresponding lowercase letter present? For example, with Input: String str= "AjUYsyuaaZ"; the Output should be: A,U,Y.”
Read report →“Write a function to compute all possible multiplications between a List of Positions and a List of Scenarios, without needing to know the specifics of the entities or the calculation itself.”
Read report →Formats, difficulty and experience
Across all 75 Morgan Stanley interview reports.