How do I make a connection to URL?
Submitted by: AdministratorYou obtain a URL instance and then invoke openConnection on it. URLConnection is an abstract class, which means you can't directly create instances of it using a constructor. We have to invoke openConnection method on a URL instance, to get the right kind of connection for your URL. Eg. URL url;
URLConnection connection; try{ url = new URL("..."); connection = url.openConnection(); }catch (MalFormedURLException e) { }
Submitted by: Administrator
URLConnection connection; try{ url = new URL("..."); connection = url.openConnection(); }catch (MalFormedURLException e) { }
Submitted by: Administrator
Read Online Network Programming Job Interview Questions And Answers
Top Network Programming Questions
☺ | Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- through and Cross-over? |
☺ | In udp concurrency is posssible or not? |
☺ | What is a Socket? |
☺ | What information is needed to create a TCP Socket? |
☺ | How do I make a connection to URL? |
Top Computer Networking Categories
☺ | CCNA Interview Questions. |
☺ | MCSE Interview Questions. |
☺ | CCNP Interview Questions. |
☺ | MCSA Interview Questions. |
☺ | Network Administrator Interview Questions. |