Thursday, May 10, 2007

A Bumper Sticker for Java Concurrency

Bloch recommended ... that final is the new private. Mark all fields final by default (blank final is OK) and only remove final if you an demonstrate a need too. This encourages safety and immutability.
-- Elliot Rusty Harold on Joshua Bloch's Java One presentation (it isn't clear who coined the phrase)

No comments: