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 ?
Re: 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 ?
Re: 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 ?
Re: 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 ?
Re: 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 ?
Check executing/running current thread by
currentThread() [Method]
public static Thread currentThread()
Find the currently executing thread.
Returns:
the currently executing thread
Re: 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 ?
Re: 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 ?
Re: 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 ?
currentThread() method is static method, so don't need to
create the thread object to call the method..
Below is the correct way ..
Thread t=Thread.currentThread();
System.out.println(t.getName());
Marker interface means , interface which has no methods.Then
what is the necessity of its usage.I read "it tells the
compiler that it should be treated differently ". "It is
used to store state of an object". But still am not
clear.Please explain clearly.
Q1.A. Write note on “The class path Environment Variable”?
B. Which are different kinds of source code?
Q2.A. How to create an interface?
B. Why convert an applet to an application?
Q3.A. How to use Media tracker Class.
B. How to use string tokenizer class.
Q4 A. Explain the overview of UDP messaging.
B. Difference between SQL Exception class and SQL
Warning class.
Q5. A. How to create com object in Java?
B. Write short notes on “The properties class”
Q6. A. When object is created and destroyed?
B. Explain the JDB in depth & command line.
C. Write short notes on Web Sites.