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 the constructor and how many types of constructors are used in java?
What is the loop in java?
What is public/private protected in java?
Explain the difference between abstraction and encapsulation.
Why java is platform independent? Explain.
What is the difference between array list and vector in java?
What is the default value of the local variables?
How do you do exponents in java?
what is thread? What are the high-level thread states? : Java thread
What does n mean in java?
Objects or references which of them gets garbage collected?
If an object is garbage collected, can it become reachable again?
When super keyword is used?
Why are parameters used in functions?
Can a class extend more than one class?