Resource (Java)

In the Java programming language a resource is a piece of data that can be accessed by the code of an application.{{Cite web|first=John|last=O'Conner|archive-date=2007-01-03|title=Java Internationalization: Localization with ResourceBundles|url=http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/|archive-url=https://web.archive.org/web/20070103035343/http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/|access-date=2020-11-16|website=Sun Developer Network}}{{cite book | last=Campione | first=Mary | author2=Kathy Walrath | author3=Alison Huml | title=The Java Tutorial Continued | url=https://archive.org/details/javatutorialcont00camp | access-date=2006-04-02 | year=2004 | edition=6 print. | publisher=Addison-Wesley | isbn=0-201-48558-3 | chapter=Internationalization | chapter-url=http://java.sun.com/docs/books/tutorial/i18n/TOC.html | url-access=registration }}

An application can access its resources through uniform resource locators, like web resources, but the

resources are usually contained within the JAR file(s) of the application.

A resource bundle is a set of key and value pairs, stored as a resource, that is commonly used to allow the localization of an application. For this purpose different resource bundles with a

common set of keys are used to store translations for the messages and user interface texts of an application.

References