Solved

After the Following Program Is Finished, How Many Bytes Are

Question 16

Multiple Choice

After the following program is finished, how many bytes are written to the file t.dat? import java.io.*;
Public class Test {
Public static void main(String[] args) throws IOException {
DataOutputStream output = new DataOutputStream(
New FileOutputStream("t.dat") ) ;
Output.writeShort(1234) ;
Output.writeShort(5678) ;
Output.close() ;
}
}


A) 2 bytes.
B) 4 bytes.
C) 8 bytes.
D) 16 bytes.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions