what might cause the current
thread to stop executing?
A) An interruptedException is thrown
B) The thread executes a sleep() call
C) The thread constructs a new Thread
D) A higher priority Thread becomes runnable
E) The thread executes a read() call on an InputStream
F) The current Thread call yield()
G) The current Thread calls wait()
H) The current thread calls notify()
The given answers are A) B) D) E) F) G)
I disagree with A. How this will affect the running thread?
Regarding B), what if is called with sleep(0), it will not stop isn't?
Regarding F), if there is no other thread, it will not stop executing.
Correct me folks, if i am wrong. I know this has been asked somany times and also there are a lot of versions of this question. Which might stop thread? what may stop thread? which will stop thread? etc etc. Can anyone elobarate the answer and difference between these questions
Thanks