Quantcast
Viewing latest article 17
Browse Latest Browse All 45

Answer by samkit shah for "implements Runnable" vs "extends Thread" in Java

Simple way to say is: If you implement interface that means you are implementing all methods of it and if you extending the class you are inheriting method of your choice... In this case,there is only a one method named Run() so better to implement Runnable interface..


Viewing latest article 17
Browse Latest Browse All 45

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>