Stage 6 #2 Variable Scope and Lifetime

Опубликовано: 23 Август 2026
на канале: Merlin Wellington
75
3

The way we declare a variable determines which parts of the code can see it (we call this it's scope) and when it gets created and deleted when the code is running (we call this it's lifetime). This video describes the four kinds of scope in Java and the lifetime that each of those kinds of scope give to an variable.

This video is part of a series that accompanies the book, "A Developer's Approach to Java." Designed to teach good software engineering practices like test-driven development from the beginning, this is a unique, hands-on way to learn Java programming.

Email me at [email protected]