+ 4
Can I create Runnable interface as follows?
interface Hi { void run() {} } and then use it. If not then why? Thanks
2 Antworten
+ 1
Why?
0
threads in java only work with Runnable interface. So your interface won't work. Unless you extend Runnable
interface MyRunnable extends Runnable {
// code ...
}