Java Stream Question and Answers

9. What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
  The Reader/Writer class hierarchy is character oriented, and the InputStream and OutputStream class hierarchy is byte oriented.
 
Your Name Your Email-ID
Your Answer
10. What is the purpose of the file class?
  The File class is used to create objects that provide access to the files and directories of a local file system.
 
Your Name Your Email-ID
Your Answer
11. What is serialization?
  The serialization is a kind of mechanism that makes a class or bean persistence by having its properties or fields and state information saved and restored to and from storage.
 
Your Name Your Email-ID
Your Answer
12. What are the advantages of serialization?
  The advantages of serialization are
  • It is easy to use and can be customized.
  • The serialized stream can be encrypted, authenticated and compressed, supporting the needs of secure Java computing.
  • There are simply too many critical technologies that rely upon serialization, including RMI, JavaBeans and EJB.
  • Serialized classes can support coherent versioning and are flexible enough to allow gradual evolution of your application's object schema.
  • Serialization can also be used as a mechanism for exchanging objects between Java and C++ libraries, using third party vendor libraries within C++.
 
Your Name Your Email-ID
Your Answer
123456 Page 3 of 6