w3resource

Java Date.clone() Method

public Object clone()

The clone() method is used to create a copy of an object.

Package: java.util

Java Platform: Java SE 8

Syntax:

clone()

Return Value:
a clone of this instance.

Java Code Editor:

Previous:before Method
Next:compareTo Method



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/java-tutorial/util/date/java_date_clone.php