AceTheInterview
Jobs in Pune | Work better in teams | Socialize with friends | Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: J1gs4w — June 1, 2008
    +1 votes
      + -

    Use a hash table or a BST.

  2. Submitted By: vinay chilakamarri — October 26, 2008
    +5 votes
      + -

    Hashtable would required an extra overhead of Synchronization. If its not a case of multiple threads, I would use HashMap and if required, use “Collections.synchronizedMap” to make it thread safe. But I concur with the kind of data structure the above poster used.

  3. Submitted By: vinay chilakamarri — October 26, 2008
    +3 votes
      + -

    Also its important to have that datastructure as a “Serializable” class so you can persist it to the file system. Make your own serialVersionUID just in case

  4. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.