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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is appletviewer?

576


What is the purpose of the system class in java?

561


What is a return in java?

558


What are the kinds of polymorphism?

617


Which programming language is most secure?

539






How would overload a function based on return type?

552


What is meant by object oriented programming – oop?

549


explain the concept of virtual method invocation in polymorphism in detail?

1724


Does java allow default arguments?

592


What is the purpose of static methods and variables?

535


Name few java 8 annotations ?

573


What does it mean to flush a file?

574


How to perform binary search in java?

581


What is the collections api?

579


What is the functionality of the stub?

577