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
Is set ordered in java?
What is data type example?
What is the use of accept () method in java?
What are scalar data types?
How many types of methods are there in java?
When is the arraystoreexception thrown?
When do we use synchronized blocks and advantages of using synchronized blocks?
How do you convert boolean to boolean?
Does a function need a return?
In java, what is the difference between method overloading and method overriding?
what is use of functional interface in java 8?
What about main thread in java?
What is a string token?
Does a class inherit the constructors of its superclass in java programming?
Why do I need to declare the type of a variable in java?