Hi all,
please correct me if my understanding is not correct
In multithreading nothing is guaranteed ,but the run method will be executed in the order they are written (may not continuously )
Really confused about the following program's output
and my output is
End of method.
Exception in thread "MyThreadThows" Run //
How come run is printed after the exception where as I wrote run method to print first "Run" then throws exception?
hi
End of method.
hi
End of method.
hi
End of method.
hi
java.lang.RuntimeException: Problem
at Thread_Exception.run(Thread_Exception.java:8)
at java.lang.Thread.run(Unknown Source)