Home » JAVA Programming » Java Basic » Question
  1. Which of the following code retrieves the body of the request as binary data?
    1. DataInputStream data = request.fetchInputStream()
    2. DataInputStream data = new InputStream()
    3. DataInputStream data = response.getInputStream()
    4. DataInputStream data = request.getInputStream()
    5. None of these
Correct Option: D

InputStream is an abstract class. getInputStream() retrieves the request in binary data.



Your comments will be displayed only after manual approval.