• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static HashMap Vs static block

 
kri shan
Ranch Hand
Posts: 1453
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic