Steve Luke wrote:
sr shashidhar wrote:
Avin Sharma wrote:Regards
Can anyone Tell me How many threads are running in Above Asked Program(Simple Main Method program with creating thread instance(with No extends or implements))
One Thread, "Main Thread"...
in each and every java program always one default thread will be running in the background i.e, "MAIN THREAD"
It's actually a little harder to answer than that, because there are extra system threads hanging around for things like Garbage Collection. You probably need a Profiler to be sure of the running thread count at any given time.