That's all about thedifference between extends Thread and implements Runnable in Java. You can clearly see that implementing Runnable is better than Thread in most of the cases except one where you quickly want to test something. Stick with best practice and encapsulate the code with a Runnable...
After knowing what is URI, URL, and URN, it's easy to find the difference between them. The main difference between URI and URL is that every URL is a URI but not vice versa. Similarly, every URN is a URI, but the opposite is not true. Another difference between URI and URL is t...