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
What is main function purpose?
What is the difference between method overriding and overloading?
What is object-oriented programming?
Explain tree set and its features?
What does 3 dots mean in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is lastindexof in java?
How to calculate the length of a singly linked list in java?
What is the reflection?
Can you declare the main method as final?
How do you trim a space in java?
How we can generate random numbers in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
How many techniques can be employed to create a string object?
Define an enumeration?