Java Multithreading Question and Answers
21. | What are concurrent collection classes? |
---|---|
|
|
22. | What is the difference between synchronized and synchronized block? |
---|---|
|
|
23. | Can a method be static and synchronized? |
---|---|
No a static method can't be synchronized. | |
24. | Which method must be implemented by all threads? |
---|---|
All tasks must implement the run() method. | |