I have a Person object with 5 variables and I want to store
them in a file called Person.txt. What should I do?

Answer Posted / s.ramesh

We have to implement serializable interface

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean to flush a file?

830


what is daemon thread and which method is used to create the daemon thread? : Java thread

766


Can we change the scope of the overridden method in the subclass?

1095


how to handle exceptions in ejb?

2124


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1707


placement papaers of spring computing technology

1217


Is static a singleton?

762


Can vector have duplicates in java?

736


Can you instantiate the math class?

846


What is the point of java?

810


Explain the difference between a Thread and a Process.

806


What is string and example?

813


What is the difference between member variables initialization and assignment in a constructor?

951


What is static synchronization?

803


Why is java logo a cup of coffee?

840