Thread checkAccess() method in Java

Thread’s checkAccess() Determines if the currently running thread has permission to modify this thread.