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

Answer Posted / gunjan

ArrayList is,unsynchronized, not thread safe, vectors r
thread safe and synchronized
if u want to make Arraylist as thread safe, should use
Collections class synchronizedList(List) method

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between compare and compareto in java?

491


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1079


Who found java?

553


What is flag in python?

557


How many digits can a float hold?

539






What is difference between throw and throws ?

607


What is the difference between access specifiers and access modifiers in java? 16

543


What is the intersection and union methods?

550


Define how objects are stored in java?

567


What is a website container?

509


Explain the use of sublass in a java program?

599


Which is better ascii or unicode?

577


Write code of any action class?

548


Give few examples of final classes defined in Java API?

707


What is an example of procedure?

518