How to run a thread separate from main thread in Java?

Viewed 58749

The goal is to be able to invoke execution of a separate thread from within the main class.

Some context: I have a program that must run a process. The process (a cmd one) should run only when the main program is done executing and is unloaded from memory.

What code should I include in the main class?

5 Answers
Related