Which method is used to retrieve the InputStream of a Socket object?

  • getInputStream()
  • getOutputStream()
  • getSocketInputStream()
  • openInputStream()
In Java, you can retrieve the InputStream of a Socket object using the getInputStream() method. This input stream allows you to read data from the socket. The other options are not used for retrieving the input stream of a socket.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *