Home / CSE MCQs / JAVA MCQs :: Serialization - Java

CSE MCQs :: JAVA MCQs

  1. Which of these is a process of writing the state of an object to a byte stream?
  2. A.
    Serialization
    B.
    Externalization
    C.
    File Filtering
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of these process occur automatically by java run time system?
  4. A.
    Serialization
    B.
    Garbage collection
    C.
    File Filtering
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of these is an interface for control over serialization and deserialization?
  6. A.
    Serializable
    B.
    Externalization
    C.
    FileFilter
    D.
    ObjectInput

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of these interface extends DataOutput interface?
  8. A.
    Serializable
    B.
    Externalization
    C.
    ObjectOutput
    D.
    ObjectInput

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of these is a method of ObjectOutput interface used to finalize the output state so that any buffers are cleared?
  10. A.
    clear()
    B.
    flush()
    C.
    fflush()
    D.
    close()

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of these is method of ObjectOutput interface used to write the object to input or output stream as required?
  12. A.
    write()
    B.
    Write()
    C.
    StreamWrite()
    D.
    writeObject()

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of these is a process of extracting/removing the state of an object from a stream?
  14. A.
    Serialization
    B.
    Externalization
    C.
    File Filtering
    D.
    Deserialization

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of these process occur automatically by java run time system?
  16. A.
    Serialization
    B.
    Memory allocation
    C.
    Deserialization
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of these is an interface for control over serialization and deserialization?
  18. A.
    Serializable
    B.
    Externalization
    C.
    FileFilter
    D.
    ObjectInput

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of these interface extends DataInput interface?
  20. A.
    Serializable
    B.
    Externalization
    C.
    ObjectOutput
    D.
    ObjectInput

    View Answer

    Workspace

    Discuss Discuss in Forum