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 are strings in physics?
Is singleton thread safe in java?
Can we clone singleton object?
If a method is declared as protected, where may the method be accessed in java programming?
What is == in java?
What are library required to connect to excel sheet.
how is final different from finally and finalize in java?
What is a boolean used for?
Can a double value be cast to a byte?
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. (
Explain a few methods of overloading best practices in java?
What’s the difference between unit, integration and functional testing?