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

Which java version is latest?

0 Answers  


What will happen if static modifier is removed from the signature of the main method?

0 Answers  


What are the types of loops in Java, and how are they used?

2 Answers  


How do you check if two given string are anagrams?

0 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


write SQL command for table employee where print first name or last name start like "A" and who is working in domain(angular js,java,dotnet)

1 Answers  


Is java util regex pattern thread safe?

0 Answers  


5 What is Java exception handling?

1 Answers  


Explain scope or life time of local variables in java?

0 Answers  


What about main() method in java ?

0 Answers  


What is a copy constructor in java?

0 Answers   Amazon,


Can we catch more than one exception in a single catch block?

0 Answers  


Categories