Home / MCQ Bank / Computer
Computer Java Serialization And Networking

What will be the output of the following Java program? import java.net.*; public class networking { public static void main(String[] args) throws UnknownHostException { InetAddress obj1 = InetAddress.getByName("cisco.com"); InetAddress obj2 = InetAddress.getByName("example.com"); boolean x = obj1.equals(obj2); System.out.print(x); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • false

Related Computer Questions

What will be the output of the following Python code snippet? >>> import collections >>> a=collections.Counter([2,2,3,3,3,4]) >>> b=collections.Counter([2,2,3,4,4]) >>> a|b What is the relation between hashset and hashmap? How can you pass a list to a function as an argument? Which of the following is true concerning personal computers? Poor data administration can lead to which of the following?