which method is used to check if a thread is running code example Example: java check if thread is running Thread.isAlive()