Page 1 of 1

About Question enthuware.ocpjp.v7.2.1201 :

Posted: Wed Jun 26, 2013 4:07 pm
by The_Nick
It's not always a properties file it might well be also a .class file. Actually the first gets checked whether there are any .class bundle file if none found it tries to find a .properties.

The_Nick.

Re: About Question enthuware.ocpjp.v7.2.1201 :

Posted: Wed Aug 06, 2014 1:19 pm
by bluster
To the point of the other poster, the sentence "A resource bundle file is always a properties file" seems inaccurate. To wit:

From the Java tutorial:
The abstract class ResourceBundle has two subclasses: PropertyResourceBundle and ListResourceBundle.
and a bit down in their page -
A PropertyResourceBundle is backed by a properties file... Each ListResourceBundle is backed by a class file.
So two subclasses of Resource Bundle, each backed by a respective kind of file. Perhaps the wording in the explanation would benefit from a mention that a .class answer is not available, rendering the property file as the only possible choice.

http://docs.oracle.com/javase/tutorial/ ... ncept.html

Re: About Question enthuware.ocpjp.v7.2.1201 :

Posted: Wed Aug 06, 2014 7:47 pm
by admin
You are right. The explanation has now been fixed.

thank you for your feedback!
Paul.