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
Can a class be private?
Is linkedlist thread safe in java?
What is static import in java?
What is an abstract method in java programming?
What is public static?
Can inner class extend any class?
What is a parameter example?
What is function declaration?
Can you make a constructor final in Java?
What is an class?
What are the important features of Java 8 release?
Difference between error and exception
What programs use java?
How does arraylist work in java?
What is the use of private static?