Morgan Stanley Interview Question for Associates
- 0of 0 votes
AnswersGiven this set of interfaces:
- freedomsharp April 20, 2015 in United States
public interface Processor<T,U> {
U process(T arg);
}
public interface Splitter<T,V> {
V[] split(T arg);
}
public interface Worker<V,W> {
W processPart(V part);
}
public interface Aggregator<U,W> {
U aggregate(W[] args);
}
and this scenario:
Please provide
1. An implementation of Processor interface
2. Test cases for testing the implementation
http://webcache.googleusercontent.com/search?q=cache:QW8rjNE9dDwJ:stackoverflow.com/questions/29716343/how-to-implement-processort-u-using-java-generics+&cd=1&hl=en&ct=clnk&gl=in| Report Duplicate | Flag | PURGE
Morgan Stanley Associate Coding
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.