Java OCA OCP Practice Question 2099

Question

Which filename extension can define a LocalDateTime property value in a resource bundle?.

  • A. .java
  • B. .properties
  • C. Both of the above
  • D. Neither of the above


A.

Note

Java supports properties file resource bundles and Java class resource bundles.

Properties file resource bundles require String values, making Option B incorrect.

Java class resource bundles allow any type of classes as values.

Since the question asks about defining values, it is the.java source code rather than the.class bytecode file, making Option A the answer.




PreviousNext

Related