I\'m reading my Deitel, Java How to Program book and came across the term shadowing. If shadowing is allowed, what situation or what purpose is there for it in a Ja
Shadowing is not really a java only term. In any instance where a variable declared in a scope has the same name as one in a bigger scope, that variable is shadowed.
Some common uses for shadowing is when you have inner and outer classes and want to maintain a variable with the same name.
If you can avoid it though, you should since it may cause confusion.