Java: variable names for a directory path, naming variables in general
<p>I'm having difficulties to decide how to name a File variable and a String variable, which both describe the same directory.</p>

<p>Basically I have a String describing the location of a directory containing testcases. With this String I want to create a File object. Something like this:</p>

<pre><code>String testcaseDirectoryPathString;
File testcaseDirectoryPath = new File(testcaseDirectoryPathString);
</code></pre>

<p>What I want to achieve is the most readability for my code, by choosing good variable names.</p>

<p>I searched the internet, but I end up finding naming conventions in general and the advice that variable names should be 'speaking'. </p>

<p>My question are for a specific examples, but my problem is not only with String and File naming but with choosing good variable names in general.</p>

<p>So here are some questions:</p>

<ol>
<li><p>Is it good practice to add the word 'String' to any String object?</p></li>
<li><p>Is it good practice to add the word 'Path' to any File object?</p></li>
<li><p>Is it a matter of personal preference and there are no good practices?</p></li>
<li><p>How do you name your variabls and why?</p></li>
</ol>

<p>If there are any articles out there, I would appreciate you pointing me to them. </p>