When using an ObjectInputStream to read data from a file, what happens when an end-of-file marker is reached?

a. Nothing occurs.
b. An end-of-file character is read by the program.
c. Method readObject returns the value 0.
d. An EOFException is thrown.


d. An EOFException is thrown.

Computer Science & Information Technology

You might also like to view...

Which of the following is the correct way to close a file stream named outFile?

a. outFile.close(); b. outFile.close; c. outFile.close("project.txt"); d. close(outFile);

Computer Science & Information Technology

I have a pointer, nodePtr to a node that is a struct in a linked list. I want to access the member named data. I do this using the expression

a) nodePtr.data b) nodePtr->data c) *nodePtr.data d) (*nodePtr).data e) data is private, you can’t access data under any circumstances.

Computer Science & Information Technology

Create a conceptual schema for Perfect Pets using the concepts of the Enhanced Entity–Relationship (EER) model. To simplify the diagram, only show entities, relationships and the primary key attributes. Specify the cardinality ratio and participation constraint of each relationship type. State any assumptions you make when creating the EER model (if necessary).

What will be an ideal response?

Computer Science & Information Technology

To generate a report of potential accessibility issues use the Accessibility ________

A) Checker B) Function C) Value D) Tool

Computer Science & Information Technology