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 is the difference between hashset and treeset in java?
Which package has light weight components in java programming?
What is the difference between size and length in java?
What does isempty () do in java?
What happens when heap memory is full?
Difference between nested and inner classes ?
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?
Does java map allow duplicates?
What is polymorphism java example?
List the interfaces which extends collection interface?
how do I create a runnable with inheritance? : Java thread
Why is multithreading important?
What is the base class of all exception classes?
What is join () in java?
Describe the various concepts related to object oriented programming (oop).