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 |
Is there memory leaks in java?
Which containers use a FlowLayout as their default layout?
What is nested loop? What is dangling else condition in it?
What is the difference between static and non-static variables in java programming?
How is abstraction implemented in java ?
How do you stop a thread in java?
What is outofmemoryerror in java?
Why do we use bufferedreader?
Can we clone singleton class in java?
How do you declare a destructor in java?
Why do we need to override equals() and hascode() method of object class?
How does arraylist size increase in java?