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
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?