Exam 15: Files, Streams and Object Serialization
Exam 1: Introduction to Computers and Java44 Questions
Exam 2: Introduction to Java Applications34 Questions
Exam 3: Control Statements39 Questions
Exam 4: Control Statements27 Questions
Exam 5: Methods36 Questions
Exam 6: Arrays and Arraylists48 Questions
Exam 7: Introduction to Classes and Objects27 Questions
Exam 8: Classes and Objects: a Deeper Look27 Questions
Exam 9: Object Oriented Programming: Inheritance22 Questions
Exam 10: Object-Oriented Programming: Polymorphism30 Questions
Exam 11: Exception Handling27 Questions
Exam 12: Gui Components78 Questions
Exam 13: Graphics and Java 2D19 Questions
Exam 14: Fundamentals of Characters and Strings26 Questions
Exam 15: Files, Streams and Object Serialization26 Questions
Exam 16: Generic Collections41 Questions
Exam 17: Lambdas60 Questions
Exam 18: Recursion15 Questions
Exam 19: Searching, Sorting and Big O21 Questions
Exam 20: Generic Classes and Methods15 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 22: GUI26 Questions
Exam 23: Concurrency54 Questions
Exam 24: Accessing Databases With JDBC35 Questions
Exam 25: JavaFX26 Questions
Select questions type
Files static method ________ receives a Path and returns a boolean indicating whether that Path represents a directory on disk.
Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
B
Adding the services of one stream to another is known as ________.
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
B
Which JFileChooser method returns the file the user selected?
(Multiple Choice)
4.8/5
(42)
The ________ abstract classes are Unicode character-based streams.
(Multiple Choice)
4.7/5
(43)
Records in a sequential file are not usually updated in place. Instead ________.
(Multiple Choice)
4.8/5
(45)
Which of the following classes enable input and output of entire objects to or from a file?
A. SerializedInputStream
B. SerializedOutputStream
C. ObjectInputStream
D. ObjectOutputStream
E. Scanner
F.Formatter
(Multiple Choice)
4.8/5
(37)
When using an ObjectInputStream to read data from a file, what happens when an end-of-file marker is reached?
(Multiple Choice)
4.9/5
(37)
________ path starts from the directory in which the application began executing.
(Multiple Choice)
4.7/5
(31)
________ is an I/O-performance-enhancement technique-it reduces the number of I/O operations by combining smaller outputs together in memory; the number of physical I/O operations is much smaller than the number of I/O requests issued by the program.
(Multiple Choice)
4.9/5
(46)
How do methods setIn, setOut and setErr affect the standard input, output and error streams?
(Multiple Choice)
4.9/5
(34)
When all the contents of a file are truncated, this means that ________.
(Multiple Choice)
4.8/5
(40)
Streams that input bytes from and output bytes to files are known as ________.
(Multiple Choice)
4.8/5
(44)
Class ________ provides static methods for common file and directory manipulations, including methods for copying files; creating and deleting files and directories; getting information about files and directories; reading the contents of files; getting objects that allow you to manipulate the contents of files and directories; and more.
(Multiple Choice)
4.8/5
(43)
Path method ________ returns the String name of a file or directory without any location information.
(Multiple Choice)
4.8/5
(38)
What does the following statement do?
Scanner scanner = new Scanner(Paths.get("test.txt"));
(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 26
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)