For getting data from remote url which connection type will work fast URLConnection or Socket.
Both have different purposes, depending upon your need
A socket can implement almost a duplex kind of functionality, whereas a url connection can connect to a given URI and read its content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With