Calendar.get takes one of the standard calendar fields as an argument, for example, YEAR or MONTH not the name of the month.
Calendar.JANUARY is 0, which is also the value of Calendar.ERA , so Calendar.getInstance().get(0) will return an era, in this case Calendar.AD , which is 1.
In the first part of your question, note that, as it is wildly documented, months start at 0, so 10 is actually November.
source share