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 |
Which java version is latest?
What will happen if static modifier is removed from the signature of the main method?
What are the types of loops in Java, and how are they used?
How do you check if two given string are anagrams?
What is the basically use of finally while we know it is always executed but why?
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)
Is java util regex pattern thread safe?
5 What is Java exception handling?
Explain scope or life time of local variables in java?
What about main() method in java ?
What is a copy constructor in java?
Can we catch more than one exception in a single catch block?