which of tha following is not a thread safe class?
a) ArrayList b)Vector c)HashTable d)None

Answer Posted / gunjan

ArrayList is,unsynchronized, not thread safe, vectors r
thread safe and synchronized
if u want to make Arraylist as thread safe, should use
Collections class synchronizedList(List) method

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What an i/o filter?

727


How much is a java license?

702


Difference between process and thread?

810


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

764


What is meant by collection in java?

771


Why does it take so much time to access an applet having swing components the first time?

1654


Where are register variables stored?

800


What is string pooling concept?

773


How would you dynamically allocate memory to an array?

786


What are the new features in java 8? Explain

729


What is the range of the short type?

778


What is the purpose of garbage collection in java, and when is it used?

778


What is a protected method?

835


What are design patterns and please explain?

823


What do you mean by object?

720