Javatpoint Logo

Output written in multithreading lesson

By: patela*** On: Mon Jul 24 10:20:26 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
There is a slight difference in the output written in the lesson vs the actual output which saw after running the program in the "Test it now" option.

Link: https://www.javatpoint.com/join()-method

Output:Name of t1:Thread-0
Name of t2:Thread-1
id of t1:8
running...
After changling name of t1:Sonoo Jaiswal
running...

Actual Output: Name of t1:Thread-0
Name of t2:Thread-1
id of t1:10
After changing name of t1:Sonoo Jaiswal
running...
running...

I'm reporting because at got me really confused.
Thank you
Up0Down