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
☺ | What two protocols are used in Java RMI technology? |
☺ | In udp concurrency is posssible or not? |
☺ | What is JSF? |
☺ | If you hear the CPU fan is running and the monitor power is still on, but you did not see any thing show up in the monitor screen. What would you do to find out what is going wrong? |
☺ | What is a Socket? |
Top Computer Networking Categories
☺ | CCNA Interview Questions. |
☺ | MCSE Interview Questions. |
☺ | CCNP Interview Questions. |
☺ | MCSA Interview Questions. |
☺ | Network Administrator Interview Questions. |