naveen yadav wrote:i didn't understand that. can you you elaborate ?
where is recursion ??
Every call new Cert() creates an instance of Cert. One of Cert field is initiated as new Cert(), which causes creation of Cert object containing Cert field, which has to be instantiated as new Cert(), which again causes creation of new Cert() object, which has to have initialized all fields, especially this field which is created as new Cert(), which causes .... this is recursion ;)