I have 2 objects inside one object(vector). how can i
serialize one of them. I dont want to serialize the second one
Answer Posted / saroj kumar biswal
this answer is not correct. bcz java compiler will throw an error-illegal declaration of statement.check it out.
I think we will go for Externalizable interface. But the problem is how write the code inside writeExternal() & readExternal() methods
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is supplier in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What is the java reflection api? Why it’s so important to have?
What is passing by reference in java?
Is a case study a method or methodology?
What java ide should I use?
What are the restrictions that are applied to the java static methods?
Explain the difference between collection api and stream api in java8?
Why vector is used in java?
What happens when a thread cannot acquire a lock on an object in java programming?
Is array a class?
What is nextint java?
What is stack example?
What is the final access modifier in java?