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:
Verified
Q50: Assume we have a RandomAccessFile object, file,
Q51: In Java, the byte type is a(n)
Q52: Given a RandomAccessFile that stores a set
Q53: You would need a Caesar cipher with
Q54: Which of the following classes are used
Q56: Which is not a method in the
Q57: The _ method returns an integer, either
Q58: In Java, you use a(n) _ object
Q59: In _ file access, the file is
Q60: Which is not a method available in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents