Networking
- Which of these class must be used to send a datagram packets over a connection?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
By using 5 classes we can send and receive data between client and server, these are InetAddress, Socket, ServerSocket, DatagramSocket, and DatagramPacket.
- Which of these method of DatagramPacket class is used to find the destination address?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
getAddress()
- Which object is used by spring for authentication?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The SessionManagementFilter checks the contents of the SecurityContextRepository against the current contents of the SecurityContextHolder to determine whether user has been authenticated during the current request by a non-interactive authentication mechanism, like pre authentication or remember me.
- Which API gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
getSocketAddress() is used to get the socket address.
- What is Remote method invocation (RMI)?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Remote method invocation RMI allows us to invoke a method of java object that executes on another machine.