Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / June 2005

Tip: Looking for answers? Try searching our database.

Difference Between ResourceBundle and Properties Classes in Java

Thread view: 
GMHK - 24 Jun 2005 12:33 GMT
Hi,

Can anyone tell me the whats the difference between the resource bundle
and Properties classes in java.
As both uses the .properties file  to get the string constants.
At what point of time would the programmer decide to choose which of
the either classes.
What i understood so far is resourcebundle makes uses of String manager
to get the string.
where as the Properties tries to read the properties directly.

Thanks in advance
Axel.Hallez - 27 Jun 2005 09:16 GMT
Properties manages a set of key value pairs. These pairs can be read
from and written to a .properties file.

A ResourceBundle is used to access resources in a way that accomodates
localisation. As the "Bundle" part of the name indicates, there are (or
can be) several resources each of them associated with a specific
locale. When a property/resource is retrieved, the result depends on the
locale you are using.

In most case, .properties files are used to store de resources, but
alternative implementations of ResourceBundle could use other means to
retrieve the resource values (eg. a database).

Axel Hallez

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks in advance


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.