MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? import java.net.*; class networking { public static void main(String[] args) throws UnknownHostException { InetAddress obj1 = InetAddress.getByName("cisco.com"); System.out.print(obj1.getHostName()); } } |
| A. | Cisco |
| B. | Cisco.com |
| C. | Www.cisco.com |
| D. | None of the mentioned |
| Answer» C. Www.cisco.com | |