My Program Java Calendar class is set to May-31

When I tried to get maximum no of days in May month, its returning 31. it's Ok.

```
int days = c.getActualMaximum(Calendar.DAY_OF_MONTH);
System.out.println("Month:" + days);

```

But when i am trying to get `Calendar.MONTH` and `Calendar.DAY_OF_MONTH`

it is always returning June-1