Cascading_Constructor1
A domino effect :
Complete Code :

/**
*
*/
import java.io.*;
/**
* @author Manas14
*
*/
public class ClassTemplate1 {

/**
*
*/
public String str1; private String str2;
public ClassTemplate1() {
// TODO Auto-generated constructor stub
str2="encapsulated strictly Private scope";
System.out.println(str2);
}

public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
try{
demo d1 = new demo (20);
demo d2 = new demo (40);
System.out.println(d1.x1 + " "+d2.x1);

}catch(NumberFormatException e){
//
}
}
}
class demo{
int x1 ;
demo(int n1){
x1 = n1;
System.out.println("Constructor invoked");
System.out.println("----");
demo2 d22 = new demo2(23);
}
}
class demo2{
int x1;
demo2(int n1){
x1 = n1;
System.out.println("Constructor cascade demo2 invoked");
System.out.println("secret number " +x1 );
}
}

Runtime view :