Solved

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

Question 62

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