How many threads are running in Java?

How many threads are running in Java?
Answer
All Java programs have
at least one thread, known as the main thread, which is created by the Java Virtual Machine (JVM) at the program’s start, when the main() method is invoked with the main thread. In Java, creating a thread is accomplished by implementing an interface and extending a class.
 

Tìm kiếm

Back
Top