Methods

The ResourceBundle class has 18 methods, each described here:

  • clearCache():
public static final void clearCache()

As you can see from the following table, the clearCache() method does not throw any exceptions, does not take any parameters, and has no return value:

Component Details
Throws None
Parameters None
Returns None

Here is a version of the clearCache() method that takes ClassLoader as a parameter:

public static final void clearCache(ClassLoader loader)

Here are the details of the version of the clearCache() method that takes a ClassLoader as a parameter:

Component Details
Throws NullPointerException (if loader is null)
Parameters loader: The class loader
Returns None
  • containsKey():
public boolean ...

Get Mastering Java 11 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.