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 is the default size of arraylist in java?

518


What does substring mean?

519


What is the difference between delete and delete[]

588


What do negative exponents mean?

554


What is 16 bits called?

513






What java is used for?

670


Can we increase array size dynamically in java?

521


What is the use of runnable interface?

629


How can we make sure main() is the last thread to finish in java program?

681


Can a static member function access member variable of an object?

568


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1374


What do you mean by byte code?

525


Why hashmap is used in java?

564


What is the purpose of static keyword in java?

525


What is type inference in java8?

590