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
Explain about the dynamic behavior of core java?
How does varargs work in java?
What is the technique adopted to create an immutable class?
What are the actions that can occur when a thread enters blocked state?
What is the difference between comparison done by equals method and == operator?
In java, what is the difference between method overloading and method overriding?
What is the right data type to represent a price in java?
Why are constructors used?
What is difference between overloading and overriding in java?
How to compare strings in java?
Can a class be defined inside an interface?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is t in generics in java?
What is boolean in java?
How do you convert string to int in java?