Q. To create an InputStream on a socket, say s, which of the following statement isnecessary? (Solved)

1. InputStream in = new InputStream(s);

2. InputStream in = s.getInputStream();

3. InputStream in = s.obtainInputStream();

4. InputStream in = s.getStream();

  • b. InputStream in = s.getInputStream();
Subscribe Now

Get All Updates & News