27Close29
Pen^2On the 2008-03-25 at 04:06pm
public class A
{
	public static void main( String[] args )
		throws java.lang.CloneNotSupportedException
	{
		new A().clone() ;
	}
}


donne

Exception in thread "main" java.lang.CloneNotSupportedException: A
        at java.lang.Object.clone(Native Method)
        at A.main(A.java:8)


C'est bien ce que je pensais tongue

(Et si tu veux bloquer l'héritage, tu déclares A finale et puis hop embarrassed)