Results 1 to 2 of 2

Thread: ResourceBundle

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Answers
    12

    ResourceBundle

    Can someone please explain to me what Resourcebudle is and how it's used?


  2. #2
    Junior Member
    Join Date
    May 2007
    Answers
    10

    Re: ResourceBundle

    Quote Originally Posted by henri084 View Post
    Can someone please explain to me what Resourcebudle is and how it's used?
    ResourceBundle is a class under java.util package
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource, a String for example, your program can load it from the resource bundle that is appropriate for the current user's locale. In this way, you can write program code that is largely independent of the user's locale isolating most, if not all, of the locale-specific information in resource bundles.

    When your program needs a locale-specific object, it loads the ResourceBundle class using the getBundle method:

    ResourceBundle myResources =
    ResourceBundle.getBundle("MyResources", currentLocale);


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact