java.util.Date gives incorrect day as output.

```
    java.util.Date date = new Date(2014,03,01);
    System.out.println("day is" +date.getDay());

```

output : day is 3 

actually it should be 7 

Update : Thanks a lot I was able to get the output Here is my code 

```
    java.util.Calendar c = java.util.Calendar.getInstance();
    c.clear();
    c.set(year,month,dd);
    System.out.println("day of week "+c.get(java.util.Calendar.DAY_OF_WEEK));

```