What will be the output of the following Java program? [code] import java.net.*; class networking { public static

What will be the output of the following Java program?
Code:
    import java.net.*;
    class networking 
    {
        public static void main(String[] args) throws Exception 
        {
            URL obj = new URL("https://ehoidap.com/javamcq");
            URLConnection obj1 = obj.openConnection();
            System.out.print(obj1.getContentType());
        }
    }
Note: Host URL is written in html and simple text.
A. html
B. text
C. html/text
D. text/html
 

Tìm kiếm

Back
Top