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 / srinivas
by using currentThread() Method ,we can find which thread
is runing
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Can we override final method?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Can a static member function access member variable of an object?
Can a abstract class be declared final?
What is the impact of declaring a method as final?
Is array size fixed in java?
What is a list in java?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
What are different types of states exist for a thread?
For class CFoo { }; what default methods will the compiler generate for you>?
Why java is considered dynamic?
What is the purpose of a default constructor?
What is the difference between comparison done by equals method and == operator?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.