logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How do you decide when to use ArrayList and When to use LinkedList?


  • Correct Answer
  • If you need to support random access, without inserting or removing elements from any place other than the end, then ArrayList offers the optimal collection If, however, you need to frequently add and remove elements from the middle of the list and only access the list elements sequentially, then LinkedList offers the better implementation 


  • Technology problems


    Search Results


    • 1. How do you traverse through a collection using its Iterator?
    • Discuss
    • 2. When should I use abstract classes and when should I use interfaces?
    • Discuss
    • 3. Explain Overriding Polymorphism.?
    • Discuss
    • 4. When do you use :: Operator in C++?
    • Discuss
    • 5. What is polymorphism?
    • Discuss
    • 6. What is the Set interface ?
    • Discuss
    • 7. What is the SimpleTimeZone class?
    • Discuss
    • 8. What are Native methods in Java?
    • Discuss
    • 9. What is Auto boxing and unboxing?
    • Discuss
    • 10. How does thread synchronization occurs inside a monitor?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment