Jehan Jaleel wrote:Hi,
I always thought that in Java when you call a method which takes an Object as a parameter you pass a reference to that object to that method. I thought this holds true even for String since it is an object. But the following code shows that I am wrong...
Yunnan Zhou wrote:thanks to Sudhakar Sharma .
now ,it,s works well as my thought
Matt Brown wrote:When a thread is in sleep 1000ms (Thread.sleep(1000)), does the thread unlock the resource during the 1000ms so other threads can access the resource?