Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8190


What is parsing in grammar?

1087


What are different types of constants?

1117


What happens when you add a double value to a string?

1057


How is hashcode calculated in java?

1087


How does callback work in java?

1121


what is anonymous class in java?

1089


What is JFC?

1326


Why constructor has no return type?

1132


What is an object class?

1074


Is there a way to increase the size of an array after its declaration?

1086


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1897


What purpose do the keywords final, finally, and finalize fulfill?

1149


Name few java.lang classes introduced with java 8 ?

1047


How many bits is a boolean?

1132