0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

java ArrayList,Vector,LinkedList 比較

Posted at

###1.比較する

項目 ArrayList LinkedList Vector
作られたバージョン JDK1.2 JDK1.2 JDK1.0
マルチスレッド(synchronized) 非対応 非対応 対応
スピード(add) 速い 普通 遅い
スピード(get) 速い 普通 遅い
スピード(remove) 普通 速い 遅い
pop,push機能 なし あり なし

###2.サンプルコード

###3.まとめ

remove,push,pop などを使うときにLinkedListを使う
マルチスレッドを使うときにVectorを使う
そのほか、ArrayList使う

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?