Computer Science, asked by namra15781, 10 months ago

What happens if a thread is started with the run ( ) method?

Answers

Answered by Anonymous
0

\huge\mathbb\orange{BONJOUR,}

\huge\mathfrak{Answer:}

The run() method is just an ordinary method (overridden by you). As with any other ordinary method and calling it directly will cause the current thread to execute run() . All magic happens inside start() . The start() method will cause the JVM to spawn a new thread and make the newly spawned thread execute run

<font color ="purple"><marquee behavior ="alternate"> ~♥~~♥~Hope It Helps~♥~~♥~</font color ="purple "></marquee behavior="alternate">

\huge\mathfrak{Regards}

\huge\mathbb\red{Aaravxxx}

Similar questions