Home Tutorial Java Scjp Part11 SCJP Module-11 Question-7

 
 

Share on Google+Share on Google+
SCJP Module-11 Question-7
Posted on: July 20, 2010 at 12:00 AM
Advertisement
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?

Answer:

(D)

Advertisement

Related Tags for SCJP Module-11 Question-7:


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.

Posted on: July 20, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com