which of tha following is not a thread safe class?
a) ArrayList b)Vector c)HashTable d)None
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / chandan
Please not confuse others, if u r not sure about the exact
one.
| Is This Answer Correct ? | 0 Yes | 0 No |
Mr Anonymous, check the answers above who has given all
options as ansewers. Is it rite for u??
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / divya
Hai, friend Exactly your false . give me 4 options in the
not thread so,ArrayList,Vector,HashTable no answers this is
Ans:None
| Is This Answer Correct ? | 0 Yes | 1 No |
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
List java api that supports threads?
What are the 3 types of control structures?
What is string english?
What happens to the Exception object after handling an exception?
What is a double?
What is the purpose of the enableevents() method?
What is a java predicate?
Can constructor be static or final?
Is it possible to override the main method?
What is a predicate method?
What are the differences between graph and tree?