Multiple choice

The ____________ method of Process class is used to return an output stream that writes output to the 'in' input stream process.

  1. getErrorStream()

  2. getOutputStream()

  3. getInputStream()

  4. destroy()

  5. exitValue()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This method of Process class returns an output stream that writes output to the 'in' input stream process.