About Question enthuware.ocpjp.v7.2.1201 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1201 :

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

bluster
Posts: 60
Joined: Wed Apr 23, 2014 6:38 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. The explanation has now been fixed.

thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests