Q.

To create an InputStream on a socket, say s, which of the following statement is necessary?

A. InputStream in = new InputStream(s);
B. InputStream in = s.getInputStream();
C. InputStream in = s.obtainInputStream();
D. InputStream in = s.getStream();
Answer» B. InputStream in = s.getInputStream();
4.7k
0
Do you find this helpful?
20

View all MCQs in

Advanced JAVA

Discussion

No comments yet