Why output other date? : <p>i have this code </p>

<pre><code>public class HelloWorld{

 public static void main(String []args){
     try{
        java.util.Date mDate;
        java.text.SimpleDateFormat readFormat = new java.text.SimpleDateFormat("yyyy-mm-dd");
        mDate = readFormat.parse("2017-02-05");
        System.out.println("date: " + mDate.toString());
     } catch (java.text.ParseException e1) {
            e1.printStackTrace();
        }
     }
</code></pre>

<p>}</p>

<p>i expected output like Feb 05 00:02:00 UTC 2017 </p>

<p>but im getting output Jan 05 00:02:00 UTC 2017  why? what's wrong in my code?</p>

<p><a href="https://i.stack.imgur.com/CegcW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CegcW.png" alt="enter image description here"></a></p>
