Share on Google+Share on Google+

SCJP Module-11 Question-7

The Sample program given below will test your understanding about the constructor of the FileOutputStream class in Java.

Which constructs a DataOutputStream?

(A) New dataOutputStream("student.ser");
(B) New dataOutputStream(new file("student.ser"));
(C) New dataOutputStream(new OutputStream("student.ser"));
(D) New dataOutputStream(new FileOutputStream("student.ser"));

Choose the correct option?




Posted on: July 20, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.


Advertisement null