how many ways we can serialize the java object?
Answers were Sorted based on User's Feedback
Answer / manikandansit
in two ways we can serialize java object by implementing
Serializable and Externalizable interface
| Is This Answer Correct ? | 5 Yes | 0 No |
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 |
What is difference overloading and overriding?
Difference between arraylist and vector.
How to use scanner in java?
How to make a class or a bean serializable?
Brief the life cycle of an applet.
What is the method to declare member of a class static?
What is ellipsis in java?
Do I need java on my computer?
Define how objects are stored in java?
Explain about java sdk?
How many functional interfaces does java 8 have?
Without creating a new object, How you can retrieve a String or other object?