Java Locale clone() methodThe clone() method of Java Locale class is used to create a copy of this locale. This method returns the clone of this instance. SyntaxParameterNA ReturnThis method returns a clone of this instance. Example 1Output: Locale1: company_JAVATPOINT Locale2: company_JAVATPOINT Example 2Output: Locale1: company_JAVATPOINT Locale2: branch_CS Locale3: branch_CS Example 3Output: Locale1: company_JAVATPOINT Locale2: company_JAVATPOINT Locale3: company-name_SSSIT Locale4: company-name_SSSIT Next TopicJava-locale-equals-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