This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes static HashMap Vs static block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static HashMap Vs static block" Watch "static HashMap Vs static block" New topic
Author

static HashMap Vs static block

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1396
I want to cache the data first time from the static block / HashMap, then use it from the cache. Which is the best option static HashMap / static block ?
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

It's not really clear what you're asking, and "best" never has one simple answer, but one reasonable approach to what I think you're talking about is:


 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: static HashMap Vs static block
 
It's not a secret anymore!