Link Details

Link 14076 thumbnail
User 111696 avatar

By bloid
via www-128.ibm.com
Published: Feb 22 2007 / 05:37

Immutable objects are a great help for writing thread-safe software. In the Java™ language, the primary mechanism for guaranteeing immutability is the use of final fields. This article shows an efficient way to implement a slightly more relaxed model of immutability, using normal cached fields whose values can still be accessed safely without synchronization.
  • 7
  • 0
  • 824
  • 169

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)