Duration: 15:58 min
Summary: In this video, we move into assignments. Our exercises will cover scope, which is the lifetime of an object. Java Supports 4 basic variable scopes: Static variable, instance variable, local variable, and block variable. We will also talk about passing variables into methods, Arrays, and initialization blocks. Static initialization blocks run once, when the class is first loaded. Instance initialization blocks run every time a new instance is created. This video and the next will include discussions of garbage collection. Garbage collection is the way Java claims memory that is not reachable by the application.