What is the ResourceBundle?
Answers were Sorted based on User's Feedback
Answer / ajay
ResourceBundle is a property file handler with locales
support, it allows you to support multiple languages in
your application. There's a full explaination on what
ResourceBundle is and how it has to be used in the javadoc.
Yes, ResourceBundle can be used instead of the Properties
class. It would be particularly usefull when developing
applications for different languages. The ResourceBundle
class will find the correct properties file based on the
current user locale.
The advantages of using ResourceBundle taken from the
javadoc This allows you to write programs that can:
be easily localized, or translated, into different
languages
handle multiple locales at once
be easily modified later to support even more locales
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ravikiran
resource bundle is to save the message as key value pairs
| Is This Answer Correct ? | 1 Yes | 2 No |
How do you compare two strings? any predefined method for this?
Explain the available thread states in a high-level?
What are the 3 types of loops in java?
How big is a 64 bit float?
Hi friends, i am new to java. can you explain how java is secured.
How many bytes is a string in java?
What is string data?
What is the difference between abstraction and encapsulation?
Are functions objects in java?
What is the purpose of the runtime class in java programming?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Whats the difference between notify() and notifyall()?