is set interface synchronized by default???

Answer Posted / jan

by default not possible.
But we can use syncronizedSet(obj of set)

Like Collections.synchronizedSet(set).

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the constructor and how many types of constructors are used in java?

531


What is the loop in java?

564


What is public/private protected in java?

539


Explain the difference between abstraction and encapsulation.

535


Why java is platform independent? Explain.

597






What is the difference between array list and vector in java?

506


What is the default value of the local variables?

500


How do you do exponents in java?

532


what is thread? What are the high-level thread states? : Java thread

780


What does n mean in java?

498


Objects or references which of them gets garbage collected?

525


If an object is garbage collected, can it become reachable again?

537


When super keyword is used?

587


Why are parameters used in functions?

525


Can a class extend more than one class?

603