• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is Variable Shadowing?  RSS feed

 
raghav singh
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can someone explain:

what is variable shadowing?When does it occur?

Thanks in advance
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me act like Google for you!

http://en.wikipedia.org/wiki/Variable_shadowing
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's all in the Java Language Specification.
 
raghav singh
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:It's all in the Java Language Specification.


Good Good .... very Good.Thats what i was looking for.A detail explanation ;)
 
raghav singh
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:Let me act like Google for you!

http://en.wikipedia.org/wiki/Variable_shadowing


What is Google? It the first time i am hearing it?..... Anyway
Of course i made a search on Google. But was looking for a detail explanation and also you know you can't talk with Google.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raghav singh wrote:Of course i made a search on Google. But was looking for a detail explanation and also you know you can't talk with Google.


But to start with all we'd be doing is repeating things that you can easily find on Google, and what's the point of that. What you'll find is a far more productive approach is to search, read, and then if you don't understand particular details come to a forum like this an explain exactly what it is you don't understand. Then we can give you specific explanations.
 
raghav singh
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Brown wrote:
raghav singh wrote:Of course i made a search on Google. But was looking for a detail explanation and also you know you can't talk with Google.


But to start with all we'd be doing is repeating things that you can easily find on Google, and what's the point of that. What you'll find is a far more productive approach is to search, read, and then if you don't understand particular details come to a forum like this an explain exactly what it is you don't understand. Then we can give you specific explanations.


Point noted totally agree with you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!