What is getId in Java?

Java Thread getId() method The getId() method is used to return the thread identifier . The thread ID is a unique positive number which was generated at the time of thread creation. The thread ID remains unchanged during its lifetime.

Read more