In the below example, new Thread() doesnt have any reference. Is it possible that it be garbage collected below it is dead ?
Also without extending Thread class or implement
Your thread will be available for garbage collection once it has finished running. The end of your for loop does not influence it, as the for loop runs in a different thread.
In answer to your second question, you are extending the Thread class by implementing your own run() function