yield() inherited, yet it can be invoked without Prefix Thread, why?
In reference to the code below, the class MyThread inherits from the Thread class its methods yield() and sleep(). The below code does not compile, the IDE hints to use Thread.yield(), while accepting sleep(). Both methods are inherited by MyThread and hence could e invoked directly. Any explanation , please?