I have been looking deeper into different collection implementations and i wonder if there is any performance difference when implementing iterator on various List types(Like the previously mentioned in the title).
As we all know iterating over ArrayList is faster as opposed to LinkedList. However is the case same when we iterate over both using the iterator methods?
Also the case is reversed when adding and removing elements, then the LinkedList is faster, but if we implement listIterator which has better performance on the add/remove operations or do they equate for both lists and there is no difference.
I apologize if this question has been asked before, I wasn't able to find anything to help me.