Sei sulla pagina 1di 1

UNIT VIII

1 Briefly explain the utility of gethost(), getProtocol() and getPort() methods of the URL class?
2 What is socket how it is used in the networking?
3 Briefly explain the situations in which bindexception, connectedexception and NoroutetoHost
exception are thrown?
4 What is an InetAddress? Write a java program to create an Inetaddress?
5 Explain briefly about the concept of TCP?
6 Describe briefly about the concept of UDP?
7 Write a server side program to send the sales figures for the six working days in a week to a
client. Write the corresponding client program?
8 Suppose the sales data is available in the file named sales.dat. Write a java program to read the
data from the file,extract the tokens and send them one by one over the net from a server to a
client?
9 Write a server side program to send the name of a medical specialist. Write a client side applet
to receive it and retrieve his phone number, return it to the server.
10 Write the client side applet to send the sales figure to the server. Write the server program to
compute and send the commission
11 Write the server side program to send the message : send 83 lakhs immediately to a client.
Write the corresponding client program.
12 Write a server side program that receives the filename, retrieve it and send the contents of the
file to the client. Write the corresponding client program?
13 Write a server side program that receives the filename from the client, retrieve its content and
send the contents of the file to the client. Write the corresponding client program?
14 Develop a UDP based server side program to send the multiple lines of message to a client.
Write the corresponding UDP based client side program.
15 Develop a UDP based client side program to send the sales data, one by one, to the server.
Write the corresponding UDP based server side program
16 Write the UDP based client side program to send the radius of a circle to the server. Write the
server side applet such that it receives the radius, computes the area and finally return it to the
client.
17 Define and explain some of the methods in Collection interface in java.util package?
18 Define and explain some of the methods in List interface in java.util package?
19 Write a sample java code to demonstrate ArrayList class methods?
20 Write a sample java code to demonstrate LinkedList class methods?
21 Write a sample java code to demonstrate HashSet class methods?
22 Write a sample java code to explain any 5 methods of MAP interface in java.util package?
23 Write a sample java code to explain any 5 methods of Enumerated interface in java.util
package?
24 Write a sample java code to demonstrate Vector class?
25 Write a sample java code to demonstrate Stack class?
26 Write a sample java code to demonstrate Dictionary and Hash table classes?
27 Write a sample java code to demonstrate Sting Tokenizer class?
28 Write a sample java code to demonstrate Date class methods?
29 Mention any 5 classes and its methods in java.io package?
30 Mention any 5 classes and its methods in java.net package?

Potrebbero piacerti anche