MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?import java.net.*; public class Networking_Host { public static void main(String[] args) throws MalformedURLException { URL object = new URL("https://www.interviewmania.com/programming"); System.out.print(object.getHost()); } } |
| A. | www.interviewmania.com |
| B. | https://www.interviewmania.com/programming |
| C. | interviewmania.com/programming |
| D. | https://www.interviewmania |
| E. | None of these |
| Answer» B. https://www.interviewmania.com/programming | |