Poisonal
Article📍BOSTON
Pass it along a thing worth keeping

Harvard Clarifies That Billionaire Donors' Opinions Are More Valuable Than Students' Free Speech

Administration releases memo explaining why protecting endowments is a core academic value, as donor pressure over Gaza positions intensifies.

1 year ago • 8 min read

Android Framework Developer

Android Framework Developer

Intro to Java Course Now Seven Years

Intro to Java Course Now Seven Years

☕
💻
🔥

Prod Incident 404 🧠

3 ·
Leo has entered the chat
☕
Leo
03:15
The production server just crashed again with a NullPointerException.
😱2
💻
Sarah
03:15
Did you check the stack trace to see where it failed?
🔥
Jax
03:16
It is definitely a memory leak in the background loop.
☕
Leo
03:17
Always initialize your object references before calling methods on them.
💡3
💻
Sarah
03:18
Let us push a patch to the repository immediately.
🔥
Jax
03:18
Agreed, deploy the hotfix now.
Sarah

Self-Taught Python Scripter

Self-Taught Python Scripter

why legacy systems still matter for your career

why legacy systems still matter for your career

Legacy Enterprise Systems Architect

Legacy Enterprise Systems Architect

Multiple-Choice Quiz
01/01
Question 01

What is the memory leak in this code?

java
private static List<String> cache = new ArrayList<>();

public void addToCache(String data) {
cache.add(data);
}

A
The static List grows indefinitely and is never cleared, preventing garbage collection of cached strings even when they're no longer needed
B
ArrayList is not thread-safe, so concurrent access will corrupt the list and leak memory
C
String objects are immutable, so adding them to a list creates duplicate memory allocations
D
The method is public, which allows external code to directly manipulate the cache reference

What is the memory leak in this code?

java
private static List<String> cache = new ArrayList<>();

public void addToCache(String data) {
cache.add(data);
}

Your Answer
Correct Answer
The static List grows indefinitely and is never cleared, preventing garbage collection of cached strings even when they're no longer needed
✗Incorrect
Explanation

Static fields persist for the entire lifetime of the application. This cache has no eviction policy—no removal, no size limit, no clearing mechanism. Every call to addToCache() adds another String reference that will never be garbage collected. Over time, the List consumes more and more heap memory until the application crashes with an OutOfMemoryError. The other options describe potential issues, but the fundamental leak here is uncontrolled growth. Fix it by adding a maximum size, implementing an eviction strategy (LRU, TTL), or using a WeakHashMap instead of a static List.

Score0/ 1
morning shift

skip the alarm logic. notice where stiffness lives—ankles, hips, shoulders. move those first. soreness isn't a warning, it's feedback. your body knows the day before your brain does.

Tips to Get and Stay Active | CardioSmart – American College of Cardiology

Tips to Get and Stay Active | CardioSmart – American College of Cardiology

How to Stay Active Throughout the Day | BHealthy Blog | Baptist Health

How to Stay Active Throughout the Day | BHealthy Blog | Baptist Health

Move or disappear

Move or disappear

Adult Activity: An Overview | Physical Activity Basics | CDC

Adult Activity: An Overview | Physical Activity Basics | CDC

the ant in the office chair
article id
650
target type
fe_component
chat target type
article_component
chat target id
42218
created at
2026-05-01T00:04:21.000000Z
updated at
2026-05-01T00:04:21.000000Z
content id
271648
related content
  • {"id":12408,"type":"concept","title":"Donor Influence in Higher Education"}

10 Ways to Stay Active All Day

10 Ways to Stay Active All Day

More from Boston