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 main function purpose?

765


What is the difference between method overriding and overloading?

847


What is object-oriented programming?

808


Explain tree set and its features?

825


What does 3 dots mean in java?

749


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

808


What is lastindexof in java?

774


How to calculate the length of a singly linked list in java?

791


What is the reflection?

790


Can you declare the main method as final?

741


How do you trim a space in java?

740


How we can generate random numbers in java?

888


In a container there are 5 components. I want to display all the component names, how will you do that?

1887


How many techniques can be employed to create a string object?

811


Define an enumeration?

816