second parameter in preferences.getInt in android
<pre><code>int minMagIndex = prefs.getInt(Preferences.PREF_MIN_MAG, 0);
if (minMagIndex &lt; 0)
minMagIndex = 0;
int freqIndex = prefs.getInt(Preferences.PREF_UPDATE_FREQ, 0);
if (freqIndex &lt; 0)
freqIndex = 0;
</code></pre>

<p>What is the second parameter in prefs.getInt ?</p>

<p>why is this if condition check done ?</p>
