List的Linkedlist与ArrayList实现 [英] Linkedlist vs ArrayList implementation of List

查看:67
本文介绍了List的Linkedlist与ArrayList实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
何时使用LinkedList<>通过ArrayList<> ;?

Possible Duplicate:
When to use LinkedList<> over ArrayList<>?

这两个列表有什么区别?它们都实现了接口List,在什么情况下您将在ArrayList上方使用LinkedList?

What is the difference between these two list? they both implements the interface List what in what case would you use a LinkedList above an ArrayList?

推荐答案

一个经典的面试问题.

阅读此内容:何时在ArrayList上使用LinkedList?还是只在Google上使用那里有大量的信息.

Read this: When to use LinkedList over ArrayList? or just google it, there is tonnes of information out there on this.

在日常编程中,很少使用LinkedList.但是,您应该definitley了解它们之间的差异.

In day to day programming it is rare that you'd use LinkedList. However, you should definitley understand the differences.

这篇关于List的Linkedlist与ArrayList实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆