ResourceBundle.clearCache(ClassLoader loader) has the following syntax.
public static final void clearCache(ClassLoader loader)
In the following code shows how to use ResourceBundle.clearCache(ClassLoader loader) method.
import java.util.Locale; import java.util.ResourceBundle; //from w w w. ja va2 s.c om public class Main { public static void main(String[] args) { ResourceBundle bundle = ResourceBundle.getBundle("hello", Locale.US); System.out.println(bundle.getString("hello")); ClassLoader cl = ClassLoader.getSystemClassLoader(); ResourceBundle.clearCache(cl); } }