Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference Between Instance variable and local varaible

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please explain me possibly with small example , what is difference between instace variable and local variable , and what are their scope?

Thanks in Advance.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a section in the Java Tutorials.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another Java Tutorials link.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic