How can you say HashMap is syncronized?

Answer Posted / reddy edagottu

hasmap is syncronized why because if hashmap is processing
by one thread another thread will wait till the thread
comeout which currently processing after than only next
thread process the hashmap

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java virtual machine and how it is considered in context of java’s platform independent feature?

657


What is class??

761


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

547


What are static blocks in java ?

617


Why destructor is not used in java?

526






Can we catch more than one exception in a single catch block?

631


Does windows 10 need java?

600


Is zero a positive integer?

537


Explain how to force the garbage collection in java.

537


what is singleton in java?

602


How do you print array in java?

560


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1585


What is a prefix function.write down a code to compute prefix function.

542


What is the difference between jdk and jre?

612


What is java life cycle?

541