Java: OutOfMemoryErrors Question Why are static references a memory leak risk? (Click to reveal answer) Answer Static references prevent eligible objects from being GC'd. In your app, if a static Map stores user sessions without removal, they linger and increase memory usage, potentially causing an OutOfMemoryError. Additional NotesWhy are static references a memory leak risk? Track: Java Topic: Performance Tuning Focus: OutOfMemoryErrors Topics: Java OutOfMemoryErrors Performance Tuning