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
Which data type is class in java?
Can we convert list to set in java?
What is an empty list in java?
What is literal example?
Is array an object in java?
What is the difference between the paint() and repaint() methods?
What is compareto () in java?
what is comparable and comparator interface?
What do you mean by platform independence?
List some important characteristics on jre
What is the difference between static and non-static variables in java programming?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What are the main uses of the super keyword?
How is hashset defined in java?
Can an interface be defined inside a class?