Lecture 3: Scope Circus in Java
A tale of doppelgänger classes, overloaded float-versus-double showdowns, and the method that never got invited inside
The discussion in this article revolves around three closely related ideas in Java: lexical scope, shadowing and hiding, and the special status of static variables and nested classes.Every Java progr…