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

Answer Posted / kk

Vector is a growable array.

The methods in Vector class are synchronized which makes
vector thread safe.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is sizeof not a function?

743


What are generic methods?

714


What is exception propagation?

808


What is get () in java?

758


Is the empty set a singleton?

696


What is java algorithm?

691


what is thread? : Java thread

741


How many threads does a core java have?

747


How do you print array in java?

715


In case of inheritance what is the execution order of constructor and destructor?

848


Which collection is thread safe in java?

710


Can we use return in constructor?

660


What is the difference between declaration and definition in java?

710


Can we have 2 main methods in java class?

729


What is difference between static and final?

743