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
What is appletviewer?
What is the purpose of the system class in java?
What is a return in java?
What are the kinds of polymorphism?
Which programming language is most secure?
How would overload a function based on return type?
What is meant by object oriented programming – oop?
explain the concept of virtual method invocation in polymorphism in detail?
Does java allow default arguments?
What is the purpose of static methods and variables?
Name few java 8 annotations ?
What does it mean to flush a file?
How to perform binary search in java?
What is the collections api?
What is the functionality of the stub?