Friday, February 22, 2013

Interview with MORGAN STANELY


Interview with MORGAN STANELY


1. Stringbuffer and Stringbuilder
2. String Manipulation
String s1 = "Sandesh";
String s2 = "Sandesh";
String s3 = new String("Sandesh");
String s4 = new String("Sandesh");

output:
s1 = s2
s2 = s3
s3 = s4

3. equals and ==
4. equals and hashcode
5. list and sets
6. hashmap
7. join()
8. wait() and notifyall()
9. cycles of thread
10. You are getting a big stream of big numbers. Now you have to design a DS, so that you can store only the unique values.
11. Now whatever system you have desinged, now check your system is compatible with following conditions.
a. If numbers are ranging from 1 to 1000 and repeating a millions time.
b. If numbers are ranging from 1 million to 10 million and repeating thousand times.
12. You are getting a big stream of numbers, now you have to design a DS which will store Latest Occurred number and 5 latest numbers.
13. checked and unchecked exceptions

No comments:

Post a Comment

Interview With Amazon Chennai

Interview With Amazon Chennai Interview 1: Coding Problem: Q1. Write down a program which will sort the values at the level in...