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 |
How can I become a good programmer?
How does hashset works in java?
What is string immutability?
what state does a thread enter when it terminates its processing? : Java thread
What are inbuilt functions in java?
Explain scope or life time of local variables in java?
What is canonical name in java?
What is difference between static and abstract class?
What is the purpose of final keyword and when to use it?
What is stored procedure. How do you create stored procedure ?
Which of the following classes will have more memory allocated?
Can we have more than one package statement in source file ?