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

Can a class be private?

922


Is linkedlist thread safe in java?

954


What is static import in java?

955


What is an abstract method in java programming?

988


What is public static?

990


Can inner class extend any class?

1014


What is a parameter example?

935


What is function declaration?

925


Can you make a constructor final in Java?

1077


What is an class?

981


What are the important features of Java 8 release?

1038


Difference between error and exception

5935


What programs use java?

890


How does arraylist work in java?

1052


What is the use of private static?

1012