Answer
Weak references allow referencing objects without preventing GC.
Useful in caching and preventing memory leaks in long-running apps.
Useful in caching and preventing memory leaks in long-running apps.
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ