GonzaloP wrote:Not necessarily. Threads can store cached versions of classes, as I recall.
Hello I want to ask if I use a static variable in JAVA, and threads, for example if the thread 1 come and put a static variable = 4, then all the others threads that access to that variable will see variable = 4 right?
And if I don't use static the data will not be share. All the threads will have his own instance of the variable?No. You can easily pass a single object to multiple threads. It doesn't have to be static.