Applying Object-Oriented Principles in Java Programs
Pattern variables: flow scoping and shadowing
2 min read · 419 words1Z0-831Updated
In one line: A pattern variable is in scope only where the match is proven, which can extend into an else branch or past an if whose then-branch exits.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.