Lê Thị Thuỳ Trang
New member
What will be the output of the following Java program?
A. 123hoidap
B. ehoidap.com
C. ehoidap.com
D. https://ehoidap.com/javamcq
Code:
import java.net.*;
class networking
{
public static void main(String[] args) throws MalformedURLException
{
URL obj = new URL("https://ehoidap.com/javamcq");
System.out.print(obj.toExternalForm());
}
}
B. ehoidap.com
C. ehoidap.com
D. https://ehoidap.com/javamcq