I applied through a staffing agency. I interviewed at Morgan Stanley (Mumbai) in Aug 2018
Interview
There was written wich contains 20 MCQs , two programs and 2 SQL queries. Then 3 technical interview rounds one fitment round and last HR round.
Got referred by headsnminds consultancy whole interview process took complete day 10.30am to 9pm.
Interview questions [1]
Question 1
Tell me about your current project
Difference between method overloading and method overriding
Can I override private method
Abstraction vs interface
Can we write implementation of few methods only in case some class is implementing particular interface
Tell me about final <class, method , variable>
As you said if value of final method can not be changed then what will happen in following case :
final Person p = new person ("ABC", 24);
p.setAge(25);
If above code runs properly with updated age Why it is proper ?
Tell me about Exception handling?
In discussion asked for example for each answer .. where in Ur project have u used this ... When should I throw runtime custom exception and and when should throw checked exception
How u create custom exception
What is need to create custom exception
Example
Do u know how does exception handling work in case of inheritance
If parent class has a method declared as follows:
Public string method1()throws IOException{..}
Then can I override this method as follows:
Public string method1()throws Exception{..}
No then why
What about vice-versa
Which collections have u used in Ur project
What is arraylist
Do you know the how arraylist internally work
What is array
Difference between array and arraylist
The discussion went around significance
When would I use which list or array ..doubly linked list , linked list
Told about internal implementation of linked list .. doubly linked list and so on .
Internal Working of hashmap
Hashing and equal methods were focus points
Relationship between hashing and equal method
If two objects have same hash code , then is it necessary that they are actually equal
And vice-versa
Played around this question
If I want to create a map of custom object vs string
Map<Person, String>
Then what I need to include in class person , how should I write the class
Other than providing equal and hash function what else is required
Is it ok if class person is mutable?
Write a immutable class
Given a string sentence get the duplicate words from it
Firstly an online assessment was done followed by personal interview.
In the online assessment 3-4 questions were asked which required good understanding of Data structures and algorithms. In the Personal interview questions from neetcode list was asked.
Great processes - 4 interviews and one presentation. Over all found it fair and enjoyable . Was tough but think it was the correct process for the role and I’m glad that I took part.
Mostly technical. Asked reverse string. Asked stuff from my resume, both experience wise and technically delved deeper asking about SQL questions etc...Know your resume well and be prepared for easy lt.