4 ms·
>Since then, it is well known by average experienced Java developers to a) read javadocs, b) not use URL class, and c) use URI P.S. not trying to flame here.
by sandGorgon 5y ago
>Since then, it is well known by average experienced Java developers to a) read javadocs, b) not use URL class, and c) use URI
P.S. not trying to flame here.
so im looking here https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/class-use/URL.html https://docs.oracle.com/en/java/javase/17/docs/api/java.base... and I couldnt see any place where it is specifically recommended to NOT use java.net.url and instead use java.net.URI
thinking from the perspective of someone new to Java.
Also when i search for "java url class" on Google...i only see java.net.url
- EvanKnowles 5y agoYeah, my team of experienced devs were all surprised by this. To the source they went, and found it was true. Not that we'd generally end up hashing a URL, but still.