Networking
- What does URL stands for?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
URL is Uniform Resource Locator.
- Which of these method is used to start a server thread?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
run() method is called when the server thread is started.
- Which of these method is called when http daemon is acting like a normal web server?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
handleGet()
- What is the output of this program?
import java.net.*;
public class networking_Length
{
public static void main(String[] args) throws Exception
{
URL object = new URL("https://www.interviewmania.com/java/programming");
URLConnection object0 = object.openConnection();
int length = object0.getContentLength();
System.out.print(length);
}
}
Note: Host URL is having length of content 256.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
256
- Which of these exceptions is thrown by URL class’s constructors?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
MalformedURLException