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 are strings in physics?

0 Answers  


Is singleton thread safe in java?

0 Answers  


Can we clone singleton object?

0 Answers  


If a method is declared as protected, where may the method be accessed in java programming?

0 Answers  


What is == in java?

0 Answers  






What are library required to connect to excel sheet.

2 Answers   Cap Gemini,


how is final different from finally and finalize in java?

0 Answers   DELL,


What is a boolean used for?

0 Answers  


Can a double value be cast to a byte?

3 Answers  


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

0 Answers  


Explain a few methods of overloading best practices in java?

0 Answers  


What’s the difference between unit, integration and functional testing?

0 Answers  


Categories