- A typical result of this error is null pointer exception.
- Novice students struggle to understand how you can have multiple variables with the same name.
- It’s best to have a rule against this in intro classes and save explaining having multiple variables with the same name for more advanced courses.
- In order to help them understand what is happening, have a simple rule about declaring globally means deleting the type in front of the variable locally.