

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? import java.net.*; class networking { public static void main(String[] args) throws UnknownHostException { InetAddress obj1 = InetAddress.getByName("sanfoundary.com"); InetAddress obj2 = InetAddress.getByName("sanfoundary.com"); boolean x = obj1.equals(obj2); System.out.print(x); } } |
A. | 0 |
B. | 1 |
C. | True |
D. | false |
Answer» D. false | |