ArrayList: It is not synchronize, It increments 50% of current array size if the number of elements exceeds from its capacity., It is not a legacy class. It is introduced in JDK 1.2., It is fast because it is non-synchronized., It uses the Iterator interface to traverse the elements., Vector: It is synchronized., it increments 100% means doubles the array size if the total number of elements exceeds than its capacity., It is a legacy class., It is slow because it is synchronized, i.e., in a multithreading environment, it holds the other threads in runnable or non-runnable state until current thread releases the lock of the object., It can use the Iterartor interface or Enumeration interface to traverse the elements.,
0%
Distinguish between ArrayList and Vector in the Java
共有
共有
共有
Mishrasudhanshu
さんの投稿です
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
グループ仕分け
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?