When a Java Virtual Machine starts up, there is usually a single non-daemon thread. So when the default daemon thread is created?
Printable View
When a Java Virtual Machine starts up, there is usually a single non-daemon thread. So when the default daemon thread is created?
The compiler doesn't call any methods in the code it is compiling. The JVM created by the java command calls the main() method to start a class's execution.Quote:
As soon as compiler invokes
thanks for the info
Suppose i have a program
Public class Test{
public static void main(String[] args)
{
}
}
When program starts execution,will there be 3 threads
1. Non-Daemon thread which is there before Daemon has started
2. Daemon thread
3. Thread which is executing this program.