A uri
could be created in two ways:
URI uri = new URI("https://www.google.com/");
Or,
URI uri = URI.create("https://www.google.com/");
I was wondering which is a better practice. I haven't noticed any performance differences and I've read the documentation, however it was a bit difficult to understand. Any insight on this is appreciated.
Reading the docs, it differs in the usage.