5
Y 2012 में लौटता है जबकि y 2011 में SimpleDateFormat में लौटता है
मुझे आश्चर्य है कि 2011 Y ’2012 में क्यों लौटता है जबकि 'y’ 2011 में लौटता है SimpleDateFormat: System.out.println(new SimpleDateFormat("Y").format(new Date())); // prints 2012 System.out.println(new SimpleDateFormat("y").format(new Date())); // prints 2011 क्या कोई समझा सकता है क्यों?