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

When do we use synchronized methods in java?

0 Answers  


Can a class be declared as protected?

0 Answers  


What is an iterator interface in java programming?

0 Answers  


What is difference between final and immutable?

0 Answers  


Can anonymous class have constructor?

0 Answers  






Is there any tag in htm to upload and download files?

0 Answers  


What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?

2 Answers  


what is the diffrences between platform independent and portable

5 Answers   TCS,


What is the console in java?

0 Answers  


Explain the access modifiers for a class, method and variables?

0 Answers   Global Logic,


Is string a datatype?

0 Answers  


What is boolean in java?

0 Answers  


Categories