Why the output is
i = 0, i * i = 0
i = 1, i * i = 1
i = 2, i * i = 4
*
**
***
****
and so on. After control coming to line1 how the control flows? Why is it not completing loop1 first? doing simultaneously both?. This is becuase of Threads I know but someone explain me pl.
Thanks.