IllegalMonitorStateException
Hi All,
I know I am repeating this, but I could not find the solution on inernet.
I have following test program and it throws IllegalMonitorStateException. Not sure why it is throwing that.
public class WaitTest {
public static void main (String a[]) {
WaitTest wt = new WaitTest();
wt.doIt();
}
void doIt() {
try {
this.wait(60000);
}
catch (Exception e) {
System.out.println (e);
}
}\
}
thanks in advance
shishir

