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 are data structures in java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
Give a practical example of singleton class usage?
What is a class reference?
What does java stand for?
what are synchronized methods and synchronized statements? : Java thread
What are jee technologies?
What is the access scope of a protected method?
Explain about sets?
Explain an algorithm to find depth of a binary tree.
Explain public static void main(string args[]) in java.
What is an inner class in java?
Write a code to create a trigger to call a stored procedure
Can a final method be overloaded?
How many boolean functions are there?