27Fermer29
Pen^2Le 25/03/2008 à 16:06
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)