(Below is the code for the problem from the book)
So I have 2 threads that are started, and both
thread share the same run() function. It seems that, based on the answers, both threads share the instances of x and y declared in main. Why is that? Also, why declare x and y as final?