What happens to the threads in a class if you reinitialize the class?
<p>If I have a <code>Thread</code> running in a class called <code>Menu</code>, what happens to the thread if I were to reinitialize <code>Menu</code>?</p>

<pre><code>public class Menu {
    private Thread thread = new Thread(new Runnable() {

        @Override
        public void run() {
            while(!thread.isInterrupted()){
                // Thread code
            }   
        }
    });

    public Menu() {
        thread.start();
    }

    public static void main(String[] args) {
        Menu menu = new Menu(); //Original
        menu = new Menu(); // New
    }

}
</code></pre>

<p>Does the thread in the original initialization continue running along with the new one or does it stop?</p>

<p>*Edited in attempt to make it clearer although I got my answer.</p>