Browse - Programming Tips - Java: get id of current thread

Date: 2019mar21
Language: Java

Q.  Java: get id of current thread

A.

final long id = Thread.currentThread().getId();