Java Get Current Thread Name and ID How to get currently executing thread name and ID in Java programming language.