«« Next » « Previous
«« Next » « Previous

Link Details

DZone can't read your mind. Tell us what you like! Login and vote now.
Link 92376 thumbnail

By Volume4
via dotnet.dzone.com
Published: Jul 03 2008 / 23:09

Problem: Store some common data in a singleton or static class about your program in an object array, which you store in a class. It saves state between usages and stores some caches, and must be initialized only once and shared in many code locations. Making a new object each time would be expensive.
  • 13
  • 1
  • 1510
  • 332

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.