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 the difference between throw and throws? What is the similarity between try and throw?
What does java ide mean?
What is update method called?
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.
What is a conditional equation?
can we write program without class
What is literal example?
if u open login & logout ,how can udisplay the timelogin & logout members ?
what is recursion in java
How can we get one Interface methods whit out using implementation of interface
When a byte datatype is used?
What are the names of Component subclasses that support painting?