0

In the class Thread in java.lang package we have

public class Thread implements Runnable{
    ...
    public static native Thread currentThread();
    ....
}

the class Thread is not an abstract class, so why the currentThread method does NOT have BODY??

kolah ghermezi
  • 91
  • 2
  • 10

1 Answers1

0

The native keyword states that this method implementation is internal and not in Java but in platform-dependent code.

ka4eli
  • 5,294
  • 3
  • 23
  • 43