• Post Reply Bookmark Topic Watch Topic
  • New Topic

ResourceBundle and Properties  RSS feed

 
Nits Kulkarni
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I wanna read a .properties file. Whats the difference between java.util.ResourceBundle and java.util.Properties? which one is better in performance criteria?

Thanks in advance
Nits
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't worry about performance differences, unless you're reading thousands of files - it should be negligible.

Resource bundles are typically used for internationalizing and localizing applications, so that differents messages are displayed for each language: Java Tutorial about Resource bundles. In general, you should use java.util.Properties.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!