import java.net.URI;
import java.net.URL;
publicclass Main {
publicstaticvoid main(String[] argv) throws Exception {
URI uri = null;
URL url = null;
// Create a URI
uri = new URI("file://D:/1.4/Ex1.java");
url = uri.toURL();
uri = new URI(url.toString());
}
}