1.

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

A. garbage value
B. 1
C. -1
D. 0
E. None of these
Answer» D. 0


Discussion

No Comment Found

Related MCQs