vendredi 8 mai 2015

anyone tell me step by step flow of program,explain complete flow of program,What happing in this program.Thanks in advance

class A{

static A A=null;

A A(A A){

System.out.println("A (A A)in A");

return A;

}

}

class Brainteaser{

public static void main(String args[]){

A A=new A();

A.A=A;

A.A(A.A);

A.A.A(A.A.A.A.A.A);

A=A.A(A);

}

}

//output of above program

A (A A)in A

A (A A)in A

A (A A)in A

Aucun commentaire:

Enregistrer un commentaire