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 difference between path and classpath in java?
What is the formula to calculate percentage?
explain what is transient variable in java?
What is an off by one error in java?
What is a function easy definition?
What is the escape character in java?
What is substring 1 in java?
What is thread life cycle?
In the below example, how many string objects are created?
What are the fileinputstream and fileoutputstream?
What are static blocks and static initalizers in java ?
Why method overriding is used?
What is variable and constant explain with example?
What is integer parseint?
How does hashmap work in java ?