Java Locale getDefault() methodThe getDefault() method of Java Locale class is used to get the current value of the default locale for this instance of the JVM(Java Virtual Mchine). SyntaxReturnIt returns the default locale for this instance of the Java Virtual Machine Example 1Output: Locale:en_US Example 2Output: Locale1: en_US Locale2: en_US Next TopicJava-locale-getdisplaycountry-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India