The method getInputStream() returns an input stream that reads from the ________.

  • URL
  • output stream
  • remote object
  • socket
The getInputStream() method in Java returns an input stream that allows you to read data from the remote object referred to by the URL. This is commonly used in HTTP connections to read the response data from a server. The other options do not represent what this method returns.
Add your answer
Loading...

Leave a comment

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