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 passing by reference in java?
How do you escape in java?
How do I start learning java?
Explain the overview of UDP messaging.
What is immutable in java?
Why stringbuffer is faster than string?
Explain spliterator in java8?
what is the purpose of the runtime class?
What is the purpose of format function?
What is stream api in java8?
Define jre i.e. Java runtime environment?
Can a class extend 2 classes in java?
What are packages in java?
What is the use of join method?
How does arraylist size increase in java?