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 are the advantages of defining packages in java?
How do you test a method for an exception using junit?
How do you change an int to a string?
What is java argument list?
How can we avoid including a header more than once?
Explain about object oriented programming and its features?
What’s the difference between constructors and other methods?
What is the purpose of assert keyword used in jdk1.4.x?
What is a concrete classes? Is Java object class is concrete class?
When object is created and destroyed?
What is the purpose of static methods and static variables?
What is the use of inner class?
What is anagram of a string?
What are the 8 data types in java?
Why do we use predicate in java?