Montag, 16. Juni 2014

Java vector obsolete

Why is Java Vector considered a legacy class, obsolete or deprecated. Vector synchronizes on each individual operation. The Inspection reports any uses of java.

Vector is available in java for backward compatibility. Use of Vector s have been discouraged for some time now. This inspection reports any uses of java. While still supporte these classes were made obsolete by the .

List - the fact that Vector combines both the resized array. ArrayList (which is the Java Collections replacement for Vector). Java Vector considered a legacy class, obsolete or deprecated Is not its use valid when working with concurrency?


And if I do not want to manually synchronize . When I used a Vector Class in one of my projects, NB 6. Is vector class was again introduced after releasing of java 1. Regards Ishant Agarwal SCJP,SCWCD.

Keine Kommentare:

Kommentar veröffentlichen

Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.

Beliebte Posts