1.

How Can You Access The Current Thread In Java?

Answer»

The CURRENT THREAD can be accessed by calling the STATIC METHOD currentThread() of the java.lang.Thread class. E.g. Thread.currentThread().getName().

The current thread can be accessed by calling the static method currentThread() of the java.lang.Thread class. E.g. Thread.currentThread().getName().



Discussion

No Comment Found