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.
About Question enthuware.ocpjp.v7.2.1201 :
Moderators: Site Manager, fjwalraven
-
- Posts: 132
- Joined: Thu May 16, 2013 9:23 am
- Contact:
-
- Posts: 60
- Joined: Wed Apr 23, 2014 6:38 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1201 :
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:
http://docs.oracle.com/javase/tutorial/ ... ncept.html
From the Java tutorial:
and a bit down in their page -The abstract class ResourceBundle has two subclasses: PropertyResourceBundle and ListResourceBundle.
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.A PropertyResourceBundle is backed by a properties file... Each ListResourceBundle is backed by a class file.
http://docs.oracle.com/javase/tutorial/ ... ncept.html
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1201 :
You are right. The explanation has now been fixed.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 5 guests