adplus-dvertising
frame-decoration

Question

What is the output of this program?
    import java.net.*;
    class networking 
    {
        public static void main(String[] args) throws MalformedURLException 
        {
            URL obj = new URL("https://www.compscibits.com/");
            System.out.print(obj.getProtocol());
        }
    }

a.

http

b.

https

c.

www

d.

com

Answer: (a).http

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?