Solved

After the Following Program Is Finished, How Many Bytes Are

Question 24

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents