When a File object is garbage collected, the corresponding file or directory is deleted(True/False). : Questions « File « SCJP
Java Source And Data Type
I/O Filters are supported on input, but not on output(True/False).
Answer: I/O filter
I/O Filters are supported by the InputStream/OutputStream class hierarchy, but not by the Reader/Writer class hierarchy(True/False).
Answer: I/O Filters and InputStream/OutputStream
I/O Filters read from one stream and write to another(True/False).
Answer: I/O filter and stream
A I/O filter may alter data that is read from one stream and written to another.
Answer: Altering data and I/O filter
The Serializable interface is used to identify objects that may be written to an output stream(True/False).
Answer: Serializable interface
Externalizable interface is implemented to control the way in which their objects are serialized.
Answer: Externalizable interface
The Serializable interface extends the Externalizable interface(True/False).
Answer: Serializable interface and the Externalizable interface
A File object can be used to change the current working directory(True/False).
Answer: File object
A File object can be used to access the files in the current working directory(True/False).
Answer: Current working directory
When a File object is created, a corresponding directory or file is created in the local file system(True/False).
Answer: File object and file system
File objects are used to access files and directories on the local file system(True/False).
Answer: File object and local file system
File objects can be garbage collected(True/False).
Answer: file object and garbage collection
When a File object is garbage collected, the corresponding file or directory is deleted(True/False).
Answer: file object, garbage collection and local file system
What output is displayed by the following program(StringReader)?
What output is displayed by the following program?
Writer classes can be used to write characters to output streams using different character encodings(True/False).
Answer: Writer classes
Writer classes can be used to write Unicode characters to output streams(True/False)
Answer: Writer classes and Unicode characters
Writer classes are character-oriented and do not support other primitive types or objects(True/False).
Answer: Writer classes and character-oriented
What is the result(regex)?
What is the result(ObjectOutputStream)?
What is the output(long, Integer and equals)?
Answer: long, Integer and equals
What is the result(Serializable)?
What is the output(transient variables)?
Answer: transient variables
What is the output(compare strings)?
Answer: compare strings
What is the result(reading with FileReader)?
Answer: reading with FileReader
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.