1.

What is the output of this program?import java.net.*; public class networking_Example { public static void main(String[] args) throws UnknownHostException { InetAddress object1 = InetAddress.getByName("tcs.com"); InetAddress object2 = InetAddress.getByName("interviewmania.com"); boolean p = object1.equals(object2); System.out.print(p); } }

A. 1
B. 0
C. true
D. false
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs