More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
- Interview Questions and Answers for 'Weakhashmap' - 1 question(s) found - Order By Newest
Q1. Difference between HashMap and WeakHashMap ?
Ans. WeakHashMap uses weak reference for keys, which means if the key object doesn't have any reference then both key/value mapping will become eligible for garbage collection.
Help us improve. Please let us know the company, where you were asked this question :