

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 | |