Java Reference
In-Depth Information
12.
The read() method in the java.io.InputStream class declares that it returns an int. What
data type does it actually return?
a. int
b. byte
c. short
d. char
e. none of the above
13.
True or False: The read methods of the various input streams block and wait for input
when none is available.
14.
True or False: A field marked as transient throws a NotSerializableException when the
corresponding object is serialized.
15.
True or False: A value of a transient field is ignored by the JVM during serialization.
16.
How many methods are in the java.io.Serializable interface?
17.
Which two exceptions does the readObject() method in the ObjectInputStream class
possibly throw?
18.
True or False: An object must be of type java.io.Serializable to be successfully
serialized.
19.
True or False: An object serialized on Windows XP can only be deserialized by a Win-
dows JVM.
20.
Which one of the following logging levels is the most severe (compared to the others)?
a. FINE
b. FINEST
c. INFO
d. WARNING
21.
Name the two Formatter classes in the Logging API.
22.
Where does the ConsoleHandler publish a logged message?
Search WWH ::




Custom Search