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



which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

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

which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

Answer / chandan

Please not confuse others, if u r not sure about the exact
one.

Is This Answer Correct ?    0 Yes 0 No

which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

Answer / arjunkumar

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

which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

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

which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

Answer / divya.c

b)Vector

Is This Answer Correct ?    3 Yes 6 No

which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

Answer / divya.c

d)None

Is This Answer Correct ?    3 Yes 7 No

which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None..

Answer / divya.c

c)HashTable

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Core Java Interview Questions

Is there memory leaks in java?

3 Answers  


Which containers use a FlowLayout as their default layout?

3 Answers  


What is nested loop? What is dangling else condition in it?

0 Answers   Ericsson,


What is the difference between static and non-static variables in java programming?

0 Answers  


How is abstraction implemented in java ?

0 Answers  


How do you stop a thread in java?

0 Answers  


What is outofmemoryerror in java?

0 Answers   Cyient,


Why do we use bufferedreader?

0 Answers  


Can we clone singleton class in java?

0 Answers  


How do you declare a destructor in java?

0 Answers  


Why do we need to override equals() and hascode() method of object class?

1 Answers   Cognizant,


How does arraylist size increase in java?

0 Answers  


Categories