📅  最后修改于: 2022-03-11 14:52:10.300000             🧑  作者: Mango
//passing url to URL class
URL url = new URL("https://www.javatpoint.com/java-threadpoolexecutor");
System.out.println("Url: "+ url);
// Fetching file name
File file = url.getFile();
System.out.println("File name in given url is : " + file);