Welcome Guest | Sign in | Register
Collections - Discussion Page For Q.2570 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Collections > Questions and Answers

Q: HashMap can be synchronized by _______ ?
A. Map m = Collections.synchronizeMap(hashMap); B. Map m = hashMap.synchronizeMap();
C. Map m = Collection.synchronizeMap(hashMap); D. None of the above

Answer and Explanation

Answer:Map m = Collections.synchronizeMap(hashMap);

Explanation:
HashMap can be synchronized by Map m = Collections.synchronizeMap(hashMap);

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.