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
State the main difference between c++ and java?
How will you reverse a singly-link list?
How do you format in java?
Is empty in java?
What is finally block?
What is a class component?
Why does java does not support multiple inheritance? Explain
How can an exception be thrown manually by a programmer?
What are inbuilt functions?
how we can make a write-only class in java?
Explain about strings in java?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Explain throw keyword in java?
Define interface in java?
Is zero a natural number?