> monitor i mean new to that concept.
Try Google.
> i feel that because main program runs in a thread.
Eh?
> how far am i correct
Correct about what?
i like thank for your quick response
Since every class starts with main loads and runs in JVM on a Thread. to handle objects in thread wait,notify,notifyall are defined