I had the question posed to me: "I need to store and retrieve some integers in my Java code. I don't exactly know how many integers at compile time. But I know it will be around 5,000 and definitely less than 5,500. This storage will be accessed frequently and I need a fast turn around time. Should I use: array, arraylist, vector, or hashmap? "
Based on my understanding, I selected hashmap, yet array was the correct answer. Why? I had always been told that hashmaps are faster.
Thanks for any clarification
Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…