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
What an i/o filter?
How much is a java license?
Difference between process and thread?
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?
What is meant by collection in java?
Why does it take so much time to access an applet having swing components the first time?
Where are register variables stored?
What is string pooling concept?
How would you dynamically allocate memory to an array?
What are the new features in java 8? Explain
What is the range of the short type?
What is the purpose of garbage collection in java, and when is it used?
What is a protected method?
What are design patterns and please explain?
What do you mean by object?