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 |
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?
What is the final blank variable?
Is java hard to learn?
How to split a string in java?
Can constructor return value?
What is the purpose of java?
What is the difference between abstract class and interface?
How can we get one Interface methods whit out using implementation of interface
where do we use init()
What restrictions are placed on method overriding?
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?
Is list thread safe in java?