`ArrayList` has no synchronization, so concurrent writes can corrupt its internal state or cause inconsistent reads. Options: external locking, `Collections.synchronizedList`, `CopyOnWriteArrayList` for mostly-reads, or using concurrent queues depending on the use case.
Expanding on the short answer — what usually matters in practice:
A tiny example (an explanation template):
// Example: discuss trade-offs for "why-is-`arraylist`-not-thread-safe,-and-how-can-"
function explain() {
// Start from the core idea:
// `ArrayList` has no synchronization, so concurrent writes can corrupt its internal state or
}