I have a question. In the following code, if a thread were blocked at wait statement, and another thread attempts to execute foo(), would the hello world message be printed? and Why?
synchronized foo(){
system.out.println("hello world");
.....
wait();
.....
}