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


Please Help Members By Posting Answers For Below Questions

What are the advantages of defining packages in java?

502


How do you test a method for an exception using junit?

527


How do you change an int to a string?

541


What is java argument list?

512


How can we avoid including a header more than once?

600






Explain about object oriented programming and its features?

585


What’s the difference between constructors and other methods?

524


What is the purpose of assert keyword used in jdk1.4.x?

552


What is a concrete classes? Is Java object class is concrete class?

504


When object is created and destroyed?

633


What is the purpose of static methods and static variables?

534


What is the use of inner class?

534


What is anagram of a string?

509


What are the 8 data types in java?

517


Why do we use predicate in java?

547