Upload Button Icon Add office photos

Morgan Stanley

Compare button icon Compare button icon Compare

Filter interviews by

Morgan Stanley Senior Java Developer Interview Questions and Answers for Freshers

Updated 25 Apr 2024

Morgan Stanley Senior Java Developer Interview Experiences for Freshers

1 interview found

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

Hackerrank - Hackerrank test including multiple choice and 2 programming questions

Round 2 - Technical 

(1 Question)

  • Q1. Garbage collector internal implementation algorithm
  • Ans. 

    Garbage collector is an automatic memory management system in Java that reclaims memory by deallocating objects no longer in use.

    • Garbage collector uses different algorithms like Mark-Sweep, Mark-Compact, and Copying to reclaim memory.

    • Mark-Sweep algorithm marks objects as reachable or unreachable, then sweeps through and deletes the unreachable objects.

    • Mark-Compact algorithm moves reachable objects to one end of the mem...

  • Answered by AI

Interview questions from similar companies

Interview Questionnaire 

4 Questions

  • Q1. One coding question.
  • Q2. Questions on Data Structures
  • Q3. Logical Question: You are a captive. If you say the right answer, the assasin will hang you, if you say the wrong answer, he will shoot you. How do you escape?
  • Q4. Other aptitude questions

Interview Preparation Tips

Round: Other Interview
Experience: One year since I took the interview, so no idea exactly what questions they asked. But I was asked to write the code on paper in front of him and was asked to debug it. Some puzzles and aptitude questions along with other basic coding questions. It was great that the guy was interactive and started asking about my projects and college life.
Btw the answer to the logical question is: I should say " you will shoot me". Paradoxical.
Tips: Feel free to ask anything that you would like to know from them. Also frankly say that you don't know a certain topic if you have no clue what it is about. They don't like people wasting their time.

Round: HR Interview
Experience: This was not exactly a technical interview. He asked me to write a code to find the day of week when a certain date in any year of the calendar is given. I answered it and then he starting asking general questions as to why do u want to join the company, etc.
I gave answers to most of them convincingly. But I kept him engaged by explaining my life at college, the extra curriculars I did at college. Also I asked him about his experience as a software engineer. I asked him to reflect upon his career and how I should approach about my career.
Tips: The best part about HR interviews is they expect you to ask them lots and lots of questions. The more they are engaged, the more are your chances of impressing and getting selected. And more importantly, ask the interviewer about his experience with the present firm. This also works with my manager when ever he has a one on one with me :P
Cheers and all the best.

Skills: Soft Skills, General Aptitude, LOGICAL THINKING ABILITIES, Coding Skills And Knowledge On Data Structures
College Name: IIT Hyderabad

I was interviewed in Dec 2016.

Interview Preparation Tips

Round: Test
Experience: Programming section had basic questions on C++ & data structures.
Tips: Try to score maximum in aptitude test, they consider your score while placement.
Duration: 2 hours
Total Questions: 35

Round: Technical Interview 1
Experience: Questions asked during this round:
Introduce yourself.
Questions on projects & internships.
Questions on Final year project in detail (max part of interview was on final year project).
Basic concepts of C++.
Few programs on C++.
Puzzles.


Round: Technical Interview 2
Experience: ? 2 interviewers were there.
? Stressed interview.
? They grilled me a lot on C++ & data structures.
One interviewer started asking questions, and before I could complete my answer, another used to cut me in
middle & start asking another question. I realized it

Interview Preparation Tips

Round: Test
Experience: It was an easy test overall, basic programming things were asked in technical part of test whereas aptitude questions were also relatively easy.
Tips: You just need to know things which were there in CS101 for technical part of test .Nothing else is required.
Duration: 30 minutes
Total Questions: 1

Skills: Problem
College Name: Indian Institute of Technology, Bombay

Interview Questionnaire 

11 Questions

  • Q1. Print all nodes at a distance k from a given node in binary tree?
  • Q2. RandN function : which generates random number in [1,2,3..N] with equal probability. Given rand5, write a code for rand7 using rand5
  • Ans. 

    Code for rand7 using rand5 function

    • Use rand5 twice to generate a number in [1,25] with equal probability

    • If the number is greater than 21, discard and try again

    • Otherwise, return (number mod 7) + 1

  • Answered by AI
  • Q3. Puzzle: Using all(8,8,3,3) and only operators(*,/,-,+), make 24
  • Q4. How do you implement LRU cache?
  • Ans. 

    LRU cache is implemented using a doubly linked list and a hash map.

    • Create a doubly linked list to keep track of the order of elements in the cache.

    • Create a hash map to store the key-value pairs of the cache.

    • When a new element is added, check if the cache is full. If it is, remove the least recently used element from the linked list and the hash map.

    • When an element is accessed, move it to the front of the linked list to...

  • Answered by AI
  • Q5. Your current project in Company? A lot of questions from CV? Discussion went on for about 15 minutes?
  • Q6. Then had a lot of questions around java script and java. About different design patterns and web services
  • Q7. A lot of questions around java, collections frameworks, multi threading and so on. (This took a good 25-30 minutes )
  • Q8. A strategy question. It would be asked depending on which team you are being interviewed for.Mine was some apple seller problem. Here knowledge of real world scenario helps. Advice is to observe things aro...
  • Q9. Write down function to select pivot element randomly in Quick Sort
  • Ans. 

    Function to randomly select pivot element in Quick Sort

    • Generate a random index within the range of the array

    • Return the element at the randomly generated index as the pivot

  • Answered by AI
  • Q10. He asked me what is a data structure and why do we use one. Explained him. He asked some real life example of stack and queue. All I could gave him was programming examples but when he insisted on real li...
  • Q11. As we were talking very much on each question. He felt like talking more and from tech he went around for some biggest learning from a mistake/biggest achievement of life kind of questions. There were oth...

Interview Preparation Tips

General Tips: I recently interviewed with Goldman Sachs, and had 4 rounds of interview with them at their campus in Bangalore.
Skills: Algorithm, Data structure
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

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

I applied via Naukri.com and was interviewed in May 2020. There were 5 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Resume related
  • Q2. Scenario based high level design

Interview Preparation Tips

Interview preparation tips for other job seekers - Not at all worthy experience. Such a huge organisation and HR people they don't know what does a offer mean to a new Candidate. You are not going to the market to buy stuff. You have to earn your candidate and same for candidate as well. Both have to mutually understand each other needs. If you cannot make an offer to the person then kindly do not waste neither your time and nor theirs. And if you have to hire real talent then expand your budget, stop bargaining.

Morgan Stanley Interview FAQs

How many rounds are there in Morgan Stanley Senior Java Developer interview for freshers?
Morgan Stanley interview process for freshers usually has 2 rounds. The most common rounds in the Morgan Stanley interview process for freshers are Coding Test and Technical.
How to prepare for Morgan Stanley Senior Java Developer interview for freshers?
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 Core Java, SQL, Db2, Financial Services and Investment Banking.

Tell us how to improve this page.

Morgan Stanley Senior Java Developer Interview Process for Freshers

based on 1 interview

Interview experience

1
  
Bad
View more
Morgan Stanley Senior Java Developer Salary
based on 26 salaries
₹14.9 L/yr - ₹45 L/yr
69% more than the average Senior Java Developer Salary in India
View more details
Associate
3.1k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Manager
2.4k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Manager
1.9k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Associate
1.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Vice President
1.3k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Morgan Stanley with

JPMorgan Chase & Co.

4.0
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