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 meant by call by reference?
When will we use them?
What are the 6 mandatory procedures for iso 9001?
What are sets in java?
When is the finally clause of a try-catch-finally statement executed?
Where we write javascript code in html page?
Name some OOPS Concepts in Java?
What is the syntax and characteristics of a lambda expression? Explain
What an i/o filter in java programming?
When do we use synchronized methods in java?
What kind of variables can a class consist?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What do the thread?class methods run() and start() do?
What are alternatives to java serialization?
Where are the card layouts used?