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 the difference between yield() and sleep()?
Can we execute a program without main() method?
Is cout buffered?
What's the purpose of static methods and static variables?
How many types of literals are there in JAVA?
Why do we need autoboxing in java?
What is an iterator java?
What is stringwriter?
Is null an object in java?
What are synchronized methods and synchronized statements in java programming?
what is predefined function in java?
What is public static void main?
Can we execute java program without main method?
What is a singleton class in Java?
What is the maximum size of array in java?