but what is wrong with option 4: IllegalThreadStateException ?
I might guess it is something concerning the Thread class that is not actually the class Object where the wait() method resides..
Looking at the API it says the following:
So we might imagine a situation where a call to the wait() method requires this kind of exception....public class IllegalThreadStateException
extends IllegalArgumentException
Thrown to indicate that a thread is not in an appropriate state for the requested operation. See, for example, the suspend and resume methods in class Thread.
lets say that a bad coding caused a call to wait() on an object that was already processed by a thread and it is considered dead already and so the call to the wait() method is illegal or something of this kind...
well so many wordings that bring me to the conclusion that there can not be such a scenario since the wait() method is called on an object and not on a thread.
Thanks anyway
