What Will Be The Output Of The Following Java Programp Pre #627
What will be the output of the following Java program?</p> <pre><code class="language-java" line="1"> import java.net.*; public class networking { public static void main(String[] args) throws UnknownHostException { InetAddress obj1 = InetAddress.getByName("cisco.com"); InetAddress obj2 = InetAddress.getByName("nvaeducation.com"); boolean x = obj1.equals(obj2); System.out.print(x); } }</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Serialization Networking - Java Networking Basics - Quiz No.1.