How does Vector implement synchronization?

Answer Posted / srinu

By default Vector class are Thread safe,thus all methods of
vector class are synchronized

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

894


What does indexof return in java?

772


Is char * a string?

768


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2047


What is a map? What are the implementations of map?

841


Explain wrapper classes in java?

787


What is the difference between class & object?

788


How does hashset work in java?

834


What is double checked locking in singleton?

835


What is difference between add() and addelement() in vector?

1325


Are there structures in java?

755


What is use of map in java?

768


Which class should you use to obtain design information about an object in java programming?

884


What is an example of a constant variable?

819


What are the topics in core java?

834