1.

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.mcqsmentor.com/j"); System.out.print(obj.getPort()); } }

A. 1
B. 0
C. -1
D. Garbage value
Answer» D. Garbage value


Discussion

No Comment Found