try { Object d = c.clone(); System.out.println("c=" + c); System.out.println("d=" + d); } catch (CloneNotSupportedException ex) { System.out.println("Now that's a surprise!!"); System.out.println(ex); }
Object d = c.clone(); System.out.println("c=" + c); System.out.println("d=" + d);
	public static void main(String[] args) { 		Clone1 c = new Clone1();		c.x = 100;		c.y = 200;		try {			Object d = c.clone();			System.out.println("c=" + c);			System.out.println("d=" + d);		} catch (CloneNotSupportedException ex) {			System.out.println("Now that's a surprise!!");			System.out.println(ex);		}	}