O'Reilly logo

Mastering Java 11 - Second Edition by Dr. Edward Lavieri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required