Hello Experts!
I run the following program on my system:
import java.util.Date;
import java.util.Calendar;
import java.util.Locale;
class x{
public static void main(
String[] args){
Calendar c = Calendar.getInstance();
Date d = c.getTime();
System.out.println(d);
Calendar c2 = Calendar.getInstance(Locale.JAPAN);
Date d2 = c2.getTime();
System.out.println(d2);
}
}
printing d and d2 gives the same result, I don't understand then whats the difference between two? In which scenario I'll get different result.
Your valuable response will help me to understand the concept.
Thanks & Regards,