1.

Which of the following code retrieves the body of the request as binary data?(a) DataInputStream data = new InputStream()(b) DataInputStream data = response.getInputStream()(c) DataInputStream data = request.getInputStream()(d) DataInputStream data = request.fetchInputStream()I got this question in examination.The question is from Servlet in chapter Java Server Technologies & Servlet of Java

Answer»

The correct option is (C) DataInputStream data = request.getInputStream()

Best explanation: INPUTSTREAM is an ABSTRACT class. getInputStream() RETRIEVES the request in BINARY data.



Discussion

No Comment Found

Related InterviewSolutions