3:13 pm - Friday December 16, 9081

Tag Archives: cloneable interface in java

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...

Java program for LinkedHashMap by using clone()method

import java.util.*; import java.util.LinkedHashMap; class LinkedHashMapclone { public static void main(String args[]) { // creating LinkedHashMap Object LinkedHashMap lhm = new LinkedHashMap(); System.out.println("Initial LinkedHashMap:"...