This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
At the first line a new Button is created. Afterwards the button gets
a new anonymous ClickHandler with the "onClick()" function. So far so
But when the user clicks the button and the "onClick()" function is
called, how is it possible, that the String variable "symbol" still
lives in memory?
I have implemented this code to my eclipse and it works perfectly. But
I do not understand how is it possible to get the value of the
"symbol" variable after the button has been created and sent to
client.??? When user clicks on the button the "onClick()" function is
called and still has the value of the "symbol" string??'
Can someone explain it to me?