how many ways we can serialize the java object?

Answers were Sorted based on User's Feedback



how many ways we can serialize the java object?..

Answer / manikandansit

in two ways we can serialize java object by implementing
Serializable and Externalizable interface

Is This Answer Correct ?    5 Yes 0 No

how many ways we can serialize the java object?..

Answer / ram

The core serialization support is in the java.io package,
and consists of two interfaces and two classes:
java.io.Serializable, java.io.Externalizable,
java.io.ObjectOutputStream, and java.io.ObjectInputStream.

Using java.io.ObjectOutputStream, you can write serialized
objects to any kind of stream: file, network, memory, etc.
Using java.io.ObjectInputStream, you can read serialized
objects from any kind of stream.

Is This Answer Correct ?    8 Yes 5 No

Post New Answer

More Core Java Interview Questions

What is the difference between throw and throws? What is the similarity between try and throw?

2 Answers  


What does java ide mean?

0 Answers  


What is update method called?

0 Answers  


Scenario: There are 1 to 100 numbers. Each number should be keep in the each column like from A column to Z column ie 1 to 26. From 27 to 52 should be in 2nd row in the excel sheet. This has to be continue till 100. How do you write Java program and what are various methods.

4 Answers   Cap Gemini,


What is a conditional equation?

0 Answers  






can we write program without class

6 Answers   TCS,


What is literal example?

0 Answers  


if u open login & logout ,how can udisplay the timelogin & logout members ?

0 Answers   Virtusa,


what is recursion in java

0 Answers   Cap Gemini,


How can we get one Interface methods whit out using implementation of interface

1 Answers   Oracle,


When a byte datatype is used?

0 Answers  


What are the names of Component subclasses that support painting?

1 Answers  


Categories