Instance Control Flow
In this tutorial, we are going to discuss instance control flow in Java. Instance Control Flow decides the sequence of activities that will be executed when we run a java class containing instance variables, methods, and blocks.
Process of instance control flow
Instance control flow will execute at the time of object creation. The following is the sequence of statements that will execute at the time of object creation.
1. Identification of Instance members
2. Execution of Instance variable assignments and Instance block from top to bottom.
3. Execution of Main Method.
Static control flow is only one-time activity, and that will execute at the time of class loading. But instance control flow is not a one-time activity. And it will execute for every object creation separately.