Saturday, April 18, 2015

Black Rock Java Interview Questions

Design Problem
  1. There is a pricing service which connects to Reuters & Bloomberg and fetches the latest price for the given Instrument Tics. There could be multiple price events for the same Stock and we need to consider the latest one. Design a service to show prices for the Top 10 stocks of the Day?
  2. There is a very Big file containing many words, how will you read and process it to print the below information ?
    a) Top 10 ranked distinct words.
    b) Occurrence of each Alphabet in the file.
  3. How will you implement a Stack using a Queue ?
  4. How will you implement a Queue using a Stack ?
  5. How will you design a two way Elevator Software for a building ?
  6. What is Immutability ? How will you make a class Immutable in Java ?
  7. How will you achieve thread-safety in your Java Program ?
  8. What are the ways to increase throughput of a multi-threaded java program ? (concurrency enhancements - use java.util.concurrent package, connection pooling, other resource pooling, caching, GC tuning, etc.)
  9. How will you troubleshoot poor memory performance of a live production program ?
  10. How will you find a single duplicate number from a large array in minimum time ?

No comments:

Post a Comment

Your comment will be published after review from moderator