What is Vector?Can you elaborate how Vector is Thread safe?

Answer Posted / aruna

Vector is a class in collection framework which omplements
list interface.It is one of the legacy classes in
collection FW.As all the methods in the vector class are
synchronised it is thread safe.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to compare various strings with the help of == operator? What are the risks involved?

832


Which object oriented concept is achieved by using overloading and overriding?

794


Can we override constructor?

766


How do you represent a space in regex java?

726


What does flagged out mean?

789


What are data types in oop?

777


What is callable java?

741


What is the reflection?

773


Explain how to force the garbage collection in java.

720


What are aggregate functions explain with examples?

779


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1005


What does it mean that a class or member is final?

745


What are thread priorities and importance of thread priorities in java?

814


What do you mean by multithreaded program?

764


what is synchronization and why is it important? : Java thread

839