which of tha following is not a thread safe class?
a) ArrayList b)Vector c)HashTable d)None
Answer Posted / srikanth
IN VECTOR CLASS ALL METHODS ARE SYNCHRONIZED.SO VECTOR
CLASS IS A THREAD SAFE CLASS. Like that Hashtable.
http://www.docjar.com/html/api/java/util/ArrayList.java.html
http://www.docjar.com/html/api/java/util/Vector.java.html
http://www.docjar.com/html/api/java/util/Hashtable.java.html
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is parsing in grammar?
What are different types of constants?
What happens when you add a double value to a string?
How is hashcode calculated in java?
How does callback work in java?
what is anonymous class in java?
What is JFC?
Why constructor has no return type?
What is an object class?
Is there a way to increase the size of an array after its declaration?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What purpose do the keywords final, finally, and finalize fulfill?
Name few java.lang classes introduced with java 8 ?
How many bits is a boolean?