How can you say HashMap is syncronized?
Answer Posted / reddy edagottu
HashMap is a collection class which is a syncronized class
why because if one thread is processing one process another
thread will wait for when running thread will comeout after
then only next thread will enter into that process that's
why it is syncronized
| Is This Answer Correct ? | 3 Yes | 12 No |
Post New Answer View All Answers
Differentiate between array list and vector in java.
What are advantages and disadvantages of OOPs?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
How garbage collection is done in java?
How to calculate the length of a singly linked list in java?
What is the difference between a scrollbar and a scrollpane?
What is difference between core java and java ee?
What is java virtual machine? Explain
Why main method is static in java?
What is the maximum size of a string in java?
How many types of classes are there in java?
Explain about static nested classes in java?
What are the legal parameters?
what is comparable and comparator interface?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.