If a multi threaded Java program has started numerous number
of threads, at any point in time how to know which thread is
currently executing/running ?
Answer Posted / adminraj
Check executing/running current thread by
currentThread() [Method]
public static Thread currentThread()
Find the currently executing thread.
Returns:
the currently executing thread
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is set and get methods in java?
Does set allows null in java?
Can we increase size of array?
What are different types of classloaders?
Explain spliterator in java8?
Why string is not thread safe?
What is super?
What is the flag in java?
Why stringbuilder is not thread safe in java?
Variable of the boolean type is automatically initialized as?
How will you invoke any external process in java?
What is a default method?
What is gc()?
Is there a case when finally will not execute?
Are arrays dynamic in java?