GnuDeveloper.com

Java Interview Questions

Morgan Stanley:

1. How to create a thread safe Array List which can be modifiable ?
2. How to optimize the message Queue or to handle more number of messages by the Consumer ?
Example: we need to think optimized way of consuming the Message queue so that Message queue will not get full.
3. How to get the list of files with descending order for the given Drive in the file system?
Example : The file name should be ordered by the file size. The driver will have N Directory.

Redbus:

Design a stack such that getMinimum( ) should be O(1)

Tango Interview questions:

Groups: