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

Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class?

5 Answers   Google,


What is the final blank variable?

0 Answers  


Is java hard to learn?

0 Answers  


How to split a string in java?

0 Answers  


Can constructor return value?

0 Answers  






What is the purpose of java?

0 Answers  


What is the difference between abstract class and interface?

3 Answers   Aspire,


How can we get one Interface methods whit out using implementation of interface

1 Answers   Oracle,


where do we use init()

2 Answers  


What restrictions are placed on method overriding?

0 Answers  


Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?

1 Answers  


Is list thread safe in java?

0 Answers  


Categories