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

What is meant by call by reference?

1009


When will we use them?

1054


What are the 6 mandatory procedures for iso 9001?

1033


What are sets in java?

950


When is the finally clause of a try-catch-finally statement executed?

1074


Where we write javascript code in html page?

1060


Name some OOPS Concepts in Java?

1074


What is the syntax and characteristics of a lambda expression? Explain

1050


What an i/o filter in java programming?

1101


When do we use synchronized methods in java?

1046


What kind of variables can a class consist?

1060


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

1061


What do the thread?class methods run() and start() do?

1037


What are alternatives to java serialization?

1127


Where are the card layouts used?

1068