Question 1: Fill up the blanks:
a) Java gives in built support for network programming via classes defined in the _________ package.
b) A _________ is a software interface which connects applications over the network.
c) ________ is a numeric addressing scheme, while ________is a textual addressing method.
d) __________ is a networking protocol supported by the Java.
e) __________ class is used to transform the domain name of an Internet address into an object that represents that address.
Question 2: State whether the given are true or false.
a) A server can accept multiple clients joined to the similar port.
b) A factory method is the other name for a constructor and is employed to make instances of a class.
c) The DatagramPacket class uses factory methods to make datagram instances.
d) As soon as a socket object is created, it implicitly establishes a connection between the server and client.
Question 3: Write a program to explain the usage of the getAddress () method and overriding the toString( ) method.
Question 4: Write down a program to show a datagram client. This reads user input strings and sends them to the echo server (already made); the echo server sends the data right back and the client prints the response to console.
Question 5: Write down a program to display the local time at the specified web site where the web site's name is typed at command line.