hi Preetha Arun,
This may be of some help to you..
Concentrate on the change in scope of the object . Especially the call stack.
Run this piece of code .. you will understand how the object v is changing..
Call Stack .
In another method :
when vh is initialised .. another>amethod >main
v=vh
v is refered to variable on another stack..
In amethod method :
v is refered to variable on amethod stack.. amethod > main
I think thats how its works....
Hope its clear..
[ September 23, 2008: Message edited by: Vipun Reddy ]