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

Answer Posted / samir vasani

a)ArrayList
Because ArrayList is not a synchronized ,means it is not a
thread safe

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is enumset?

787


Explain about class in java?

819


How to check if linked list contains loop in java?

641


what is use of functional interface in java 8?

776


Why singleton is not thread safe?

762


What are java annotations?

823


Is char a method in java?

729


If I only change the return type, does the method become overloaded?

720


Explain numeric promotion?

800


Is it necessary for the port addresses to be unique? Explain with reason.

777


How to store image in arraylist in java?

697


Difference between class#getinstance() and new operator ?

874


Can we use return in constructor?

674


List any five features of java?

773


How does callback work in java?

798