ByteArrayOutputStream class common methods - Core Java -

Q.  Which is commonly used method of ByteArrayOutputStream class?
- Published on 10 Jul 15

a. ByteArrayOutputStream()
b. ByteArrayOutputStream(int size)
c. public synchronized void writeTo(OutputStream out) throws IOException
d. Both A & B

ANSWER: public synchronized void writeTo(OutputStream out) throws IOException

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)