What would be the output of the following script?

What would be the output of the following script?
import java.net*;
public class ExampleByName {
public static void main(String[] args) {
try
{
InetAddress.getByName(www.microsoft.com”);
System.out.println(address);
}
catch (UnKnownHostException e) {
System.out.println(“Could not find www.microsoft.com”)
}

What would be the output of the following script?
import java.net*;
public class ExampleByName {
public static void main(String[] args) {
try
{
InetAddress.getByName(www.microsoft.com”);
System.out.println(address);
}
catch (UnKnownHostException e) {
System.out.println(“Could not find www.microsoft.com”)
}

A.
IP address of www.microsoft.com

B.
Hexadecimal equivalent for www.microsoft.com

C.
Tracert information to the www.microsoft.com

D.
Whois information for www.microsoft.com

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *