ExamVeda
Login
Home
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);
    }
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.