8:40 pm - Monday June 26, 2017

Tag Archives: Java Practices -> Avoid clone

Date in java example program for clone()

/** *@author:candidjava *@description:Date in java example for clone() **/ import java.util.Date; public class Clone { public static void main(String[] args) { Date d1 = new Date(90,10,5); Object d2=d1.clone(); System.out.println("Original...