I am looking for some more knowledge about java main method public static void main(String[] args) .When JVM call main method it creates Main thread and the whole program is get executed in this Main thread until some user thread explicitly get started in its own stack.
My question is that is it possible to start main thread from some other main method?
Its better if someone can give me some reference about main thread.
The main thread is just a concept, it’s a name for the thread that starts your app, this thread is not special in any way (other than not being a daemon thread) so you can easily create new threads that are not daemons also and call another main method on them.
There isn’t anything special about being the main thread, it’s just the first thread to be started.