Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Which of these interface extends DataOutput interface?(a) Serializable(b) Externalization(c) ObjectOutput(d) ObjectInputI had been asked this question in an interview.My question comes from Serialization in division Serialization & Networking of Java

Answer»

Right choice is (C) OBJECTOUTPUT

The explanation is: ObjectOutput INTERFACE extends the DataOutput interface and supports OBJECT serialization.

52.

Which of these is an interface for control over serialization and deserialization?(a) Serializable(b) Externalization(c) FileFilter(d) ObjectInputThis question was posed to me in an international level competition.My question is taken from Serialization topic in chapter Serialization & Networking of Java

Answer»

The CORRECT OPTION is (B) Externalization

Easy EXPLANATION: NONE.

53.

Which of these is a process of writing the state of an object to a byte stream?(a) Serialization(b) Externalization(c) File Filtering(d) All of the mentionedI had been asked this question in an online quiz.This key question is from Serialization in section Serialization & Networking of Java

Answer»

Right answer is (a) SERIALIZATION

To elaborate: Serialization is the process of writing the state of an object to a byte STREAM. This is used when you want to SAVE the state of your program to a PERSISTENT storage area.