Question: 1. TCO 4) What are the two classes in Java that are provided for in the datagram socket API? Run-timeSupport and PayloadData. DatagramSocket and DatagramPacket.

1.

TCO 4) What are the two classes in Java that are provided for in the datagram socket API?

Run-timeSupport and PayloadData.
DatagramSocket and DatagramPacket.
StreamSockets and DatagramSockets.

DatagramSend and DatagramReceive.

2.

(TCO 4) In which of the following cases would an IllegalArgumentException be thrown?

When the addresses of both a remote socket and datagram match.
When the datagrams address does not match the socket address.
When the data is sent to the socket from a source other than the connected remote socket.

When the data sent to the socket is ignored.

3.

(TCO 4) Explain the stream-mode socket.

Supports connection-oriented communication only.
Data is transferred using the concept of a continuous data stream.
Data is transferred using the concept of a discrete data stream.
Both a & b

Question 4.(TCO 4) What is the difference between the ServerSocket class and the Socket class?

The ServerSocket class is for the transfer of data and the Socket class is for the establishment of connections.
The ServerSocket class is for the establishment of connections and the Socket class is for the transfer of data.
The ServerSocket class utilizes data sockets while the Socket class utilizes connection sockets.
The ServerSocket class utilizes connection sockets, but the Socket class doesnt utilize any socket.

Flag this Question

Question 5

(TCO 4) What is the Java Secure Socket Extension (JSSE)?

A socket API that provides nonblocking I/O operations.
A process that wishes to communicate with the server.
A set of Java packages that enable secure Internet communications.
A stream-mode socket API that enables secure Internet communications.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!