top of page

Get auto trading tips and tricks from our experts. Join our newsletter now

Thanks for submitting!

Java based interview questions from Morgan Stanley, Amazon, Yahoo

Java based interview questions from Morgan Stanley, Amazon, Yahoo,

From Career Cup at http://www.careercup.com/page?pid=java-interview-questions&n=3

Amazon Interview Question for Software Engineer / Developersabout Java offerfromMS on October 21, 2008

What is final, finalize and finally? Where do you use ‘final’ keyword. What is the effect of making a method final? 3 [Full Interview Report]

Tags: Amazon » Java » Software Engineer / Developer Question #63476 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java JobSeeker on October 20, 2008

Why use inner classes? 10 [Full Interview Report]

Tags: Amazon » Java » Software Engineer / Developer Question #63087 (Report Dup) | Edit Yahoo Interview Question for Software Engineer / Developers aboutJava The Hercules on September 01, 2008

Difference between final & finally 3 [Full Interview Report]

Tags: Yahoo » Java » Software Engineer / Developer Question #57962 (Report Dup) | Edit Yahoo Interview Question for Software Engineer / Developers aboutJava The Hercules on September 01, 2008

Different ways to pass parameters to a function (by value, by reference, by pointer). for the following cases. 6.1 Basic data type (int, char etc) 6.2 Array of integers 6.3 an object of Structure 6.4 an object of a class Discussed about possiblities of passing constant argument values (by reference, by pointer etc) & their syntax 8 [Full Interview Report]

Tags: Yahoo » Java » Software Engineer / Developer Question #57959 (Report Dup) | Edit Yahoo Interview Question for Software Engineer / Developers aboutJava The Hercules on September 01, 2008

What is the effect by keeping a constructor private? (in terms of inheritance) 10 [Full Interview Report]

Tags: Yahoo » Java » Software Engineer / Developer Question #57958 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Terminology & Trivia g.usask on August 25, 2008

Say you are using a map in your program, how would you count the number of times the program use put() and the get() function? How would you do that if its using multiple maps in the program? How would you do that if the map is sent as a parameter in a method? How would you do it if the multiple maps are passed into the methods (as parameters), and are use differently? (it went on forever….) 12 [Full Interview Report]

Tags: Amazon » Java Terminology & Trivia » Software Engineer / Developer Question #58095 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Terminology & Trivia g.usask on August 25, 2008

What is the difference between Final, Finally, and Finalize? 4 [Full Interview Report]

Tags: Amazon » Java Terminology & Trivia » Software Engineer / Developer Question #58094 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java g.usask on August 25, 2008

What does the “Static” keyword do? Do you know any other similar keywords? What are they? 4 [Full Interview Report]

Tags: Amazon » Java » Software Engineer / Developer Question #58093 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Jackie on August 08, 2008

What do you know about Java generics 2

Tags: Amazon » Java » Software Engineer / Developer Question #57410 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Terminology & Trivia Anonymous on August 04, 2008

what is object reflection in Java 3 [Full Interview Report]

Tags: Amazon » Java Terminology & Trivia » Software Engineer / Developer Question #57338 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Terminology & Trivia Anonymous on August 04, 2008

How does Java achieve synchronization? Given an class with Synchronized method A and B, a normal method C, there are 2 threads, one instance, can these two threads call A at the same time? call A and B at the same time? A & C at the same time? 4 [Full Interview Report]

Tags: Amazon » Java Terminology & Trivia » Software Engineer / Developer Question #57337 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Terminology & Trivia hipy16 on July 22, 2008

Difference between int and Integer in Java. 6 [Full Interview Report]

Tags: Amazon » Java Terminology & Trivia » Software Engineer / Developer Question #57141 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Experience hipy16 on July 22, 2008

What are the interfaces in Collection classes that you worked with? (Collection, Set, Map, List, Queue) 2 [Full Interview Report]

Tags: Amazon » Java Experience » Software Engineer / Developer Question #57116 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Data Structures Object Oriented Design Coding S on July 01, 2008

Had my first and second phone interview with Amazon. I was dropped. This site has been a great help towards my preparation and most questions are based on what you find here. Posting my Questions is a small way of saying Thanks! Interview 1: 1. What is polymorphism. 2. Design an OO parking lot. What classes and functions will it have. It should say, full, empty and also be able to find spot for Valet parking. The lot has 3 different types of parking: regular, handicapped and compact. 3. Coding: I have an integer array where every number appears even number of times and only one appears odd times. Find the number. (I said hashtable and he asked me to write code with Hashtable) 4. What data structure would you use to look up phone numbers for customer names. (I said Hashtable. Asked why hashtable, why not a tree. I said HT has O(1). Asked is order always 1, when more than O(1) in HT. Second Interview: 1. Starter: Describe your college projects. 2. OO Design: Design a deck of cards. What classes, data structures will you use? How will you shuffle the cards? How will you divide (deck) among players. What class/function do you need to denote players and where will you add them? What class/function do you need to deck? What if I need to add 2 jokers to the deck of 52 cards. 3. Data Structures: How will you use a hashtable to find data in a tree. (Then he rephrased) suppose I have a hashtable, I want to store the data in a tree instead of a bucket. How will I do it. What complexity to find an element. 4. Bits & Bytes: Find if a binary representation of a number is palindrome. The function should work irrespective of number of bytes for an integer. Suppose if our machine is 4 bytes for an int, how will you use the program for 8 byte machine. 5. Unix: Suppose I have 100’s of html files in many directories. I want to find the files having phone numbers. b) Suppose I have 2 files having phone numbers, find the repeating phone numbers. (I said sort and grep). Then he asked what if the lines cannot be sorted. All the best guys. I think the second interview was challenging since the interviewer was prodding until he heard a leave me alone. So it means that though they are based on questions in cc, be prepared for extensions. I think this site is all you need to prepare for Amazon interview. 19

Tags: Amazon » Java Data Structures Object Oriented Design Coding » Software Engineer / Developer Question #56632 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on June 15, 2008

What is the flaw in the design of Java.lang.Stack class of Java 7

Tags: Amazon » Java » Software Engineer / Developer Question #2730 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on June 15, 2008

what is the difference between template in C++ and generics in java 5

Tags: Amazon » Java » Software Engineer / Developer Question #2729 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on June 15, 2008

What is the use of volatile variable. Explain it in Singleton class also for lazy initialization. 5

Tags: Amazon » Java » Software Engineer / Developer Question #2726 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on June 15, 2008

How Java is plateform independent 5

Tags: Amazon » Java » Software Engineer / Developer Question #2725 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

How to implement your own HashMap in java 1

Tags: Amazon » Java » Software Engineer / Developer Question #2713 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

give the algorithm for checking anagram 5

Tags: Amazon » Java » Software Engineer / Developer Question #2712 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

Why should you not make your Sinleton claas as Serializable and Clonable. 3

Tags: Amazon » Java » Software Engineer / Developer Question #2711 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

What is the difference between sleep and yield method 3

Tags: Amazon » Java » Software Engineer / Developer Question #2710 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

What is the limitation of singleton pattern 4

Tags: Amazon » Java » Software Engineer / Developer Question #2789 (Report Dup) | Edit Fair Issac Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

Tell the situation where we can use nested classes. 2

Tags: Fair Issac » Java » Software Engineer / Developer Question #2708 (Report Dup) | Edit Fair Issac Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

What was the problem in implementing double checked locking before java 1.5. 2

Tags: Fair Issac » Java » Software Engineer / Developer Question #2788 (Report Dup) | Edit Amazon Interview Question for Software Engineer / Developersabout Java Alok Kesharwani on May 31, 2008

Why Java language designer has chosen to make all the variable inside an Interface as public ,static and final. 5

Tags: Amazon » Java » Software Engineer / Developer Question #2706 (Report Dup) | Edit Fair Issac Interview Question for Financial Software Developersabout Java helper on May 09, 2008

What are the various ways in singleton pattern can be made to fail and how to avoid them ? 7

Tags: Fair Issac » Java » Financial Software Developer Question #2673 (Report Dup) | Edit Morgan Stanley Interview Question for Software Engineer / Developers about Java Terminology & Trivia MJ on March 06, 2008

Do you know the big difference b/w .NET and JVM? (I answered CLR, and it’s correct) What is .NET? (A sort of JVM with gc 🙂 2 [Full Interview Report]

0 views0 comments

Comments


bottom of page