Networking


  1. Which of these class must be used to send a datagram packets over a connection?











  1. 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.


  1. Which of these method of DatagramPacket class is used to find the destination address?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    getAddress()



  1. Which object is used by spring for authentication?











  1. 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.


  1. 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.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    getSocketAddress() is used to get the socket address.



  1. What is Remote method invocation (RMI)?











  1. 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.