JAVA - Calendar.getInstance().get(Calendar.YEAR) VS Calender.YEAR
<p>What is the difference between these 2 lines of code? Or are they the same?</p>

<pre><code>int year = Calendar.getInstance().get(Calendar.YEAR);
</code></pre>

<p>and this:</p>

<pre><code>int year = Calender.YEAR;
</code></pre>