My tutor told me that the main thread is the parent thread of every thread, but he is not able to explain why.
When I write a simple program:
Class A{}
Then it at the time of execution it throws an exception:
java.lang.NoSuchMethodError: main Exception in thread "main"
Is there any relation between the main()
method and the main thread?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…