Question: What is the difference between the File and RandomAccessFile classes?
Answer: The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.
Question: What happens when you add a double value to a String?
Answer: The result is a String object.
Question: What is your platform's default character encoding?
Answer: If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1.
Question: Which package is always imported by default?
Answer: The java.lang package is always imported by default.
Question: What interface must an object implement before it can be written to a stream as an object?
Answer: An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.
0 comments:
Post a Comment