Wednesday, 2 May 2018

java - why the currentThread method does NOT have the method BODY?

Answer



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??

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...