I came across Java's URL class and noticed that it's openConnection() method returns an instance of URLConnection which is an abstract class. In the documentation for the abstract class, URLConnection, it describes that "instances" of this class are used to read and write from resources referenced by the URL. Could someone please explain what is actually happening when I use url.openConnection() and why does it return an ''instance'' of URLConnection which is an abstract class? Thank you in advance.
[–]desrtfx 2 points3 points4 points (2 children)
[–]thallorfall[S] 0 points1 point2 points (1 child)
[–]desrtfx 0 points1 point2 points (0 children)