Course contentsShow
Java
Lesson 190 of 2,8704. Control Flow StructuresPro lesson

Variable Shadowing in Nested Blocks

Inner blocks cannot declare variables with the same name as variables in outer blocks—Java prevents shadowing.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.