Solved

Which Code Stores an Array ButtonArray of JButton Objects in a File

Question 55

Multiple Choice

Which code stores an array buttonArray of JButton objects in a file named buttonFile? We ignore exceptions in this problem.


A) ObjectStream os = new ObjectStream(new FileStream("buttonFile") ;
Os) writeObject(buttonArray) ;
B) ObjectOutputStream oos = new ObjectOutputStream(
New FileOutputStream("buttonFile") ;
Oos) writeObject(buttonArray) ;
C) ObjectOutputStream oos = new ObjectOutputStream(
New FileOutputStream("buttonFile") ;
Oos) writeObject(buttonArray[0]) ;
D) ObjectOutputStream oos = new ObjectOutputStream("buttonFile") ;
Oos) writeObject(buttonArray) ;

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