Category: Java

Best-practice for documenting available/required Java properties file contents

Is there a well-established approach for documenting Java “properties” file contents, including: specifying the data type/contents expected for a given key specifying whether a key is required for the application to function providing a description of the key’s meaning Currently, I maintain (by hand) a .properties file that is the default, and I write a […]

Should Java method arguments be used to return multiple values?

Since arguments sent to a method in Java point to the original data structures in the caller method, did its designers intend for them to used for returning multiple values, as is the norm in other languages like C ? Or is this a hazardous misuse of Java’s general property that variables are pointers ?