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
How do you empty a list in java?
What is overriding in java?
What is package private scope in java?
What is the use of a conditional inclusion statement in Java ?
Is java owned by oracle?
Compare overloading and overriding?
Is class forname reflection?
What are the different types of constructor?
Why is the main method static?
Explain aggregation in java?
How do you input a string in java?
Can It is possible to synchronize the constructor of a Java Class?
When a byte datatype is used?
What is java lang object?
Do I need java for windows 10?