The scope and extent of variables is based on their declaration. The scope of parameters and local variables corresponds to the declaring method or statement block, while the scope of fields is associated with the instance or class and is potentially further restricted by the field's access modifiers.
The extent of variables is determined by the run time environment using implicit reference counting and a complex garbage collection algorithm.
The extent of variables is determined by the run time environment using implicit reference counting and a complex garbage collection algorithm.