Q95
What will be the output of the following Java 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
AnswerC.
www.cisco.com
D.
none of the mentioned
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board