nerdexam
Oracle

1Z0-804 · Question #92

Given this error message when running your application: Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name MessageBundle, locale And given that the…

The correct answer is B. The file is not in the classpath. See the full explanation below for the reasoning.

Question

Given this error message when running your application:

Exception in thread "main" java.util.MissingResourceException:

Can't find bundle for base name MessageBundle, locale And given that the MessageBundle.properties file has been created, exists on your disk, and is properly formatted. What is the cause of the error message?

Options

  • AThe file is not in the environment path.
  • BThe file is not in the classpath.
  • CThe file is not in the javapath.
  • DYou cannot use a file to store a ResourceBundle.

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    81% (34)
  • C
    5% (2)
  • D
    12% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice