Multiple choice

Which of the following methods write(s) the properties in the OutputStream object?

  1. public void store(Writer w, String comment)

  2. public void store(OutputStream os, String comment)

  3. public void load(Reader r)

  4. both (1) and (2)

  5. none of the above

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

This method is used to write the properties in the OutputStream object