Why doesn JDBC accept URLs instead of a URL string?
Location: http://www.jguru.com/faq/view.jsp?EID=444384 Created: Jun 24, 2001 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by John Zukowski PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=7 In order for something to be a java.net.URL, a protocol handler needs to be installed. Since there is no one universal protocol for databases behind JDBC, the URLs are treated as strings. In Java 1.4, these URL strings have a class called java.net.URI. However, you still can’t use a URI to load a JDBC driver, without converting it to a string.