HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

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
  • 1072
  • 0

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)