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 do you mean by order of precedence and associativity?

742


What is flush buffer?

755


What is the purpose of tostring() method in java?

798


What is a consumer in java?

786


What is multi level inheritance in java?

771


Can we call thread start () twice?

715


What is difference between local variable and global variable?

719


Differentiate between stringbuffer and string?

803


What is meant by null and void?

743


What happens when I use / and % with a negative numerator?

783


What environment variables do I need to set on my machine in order to be able to run java programs?

796


What is the purpose of using break in each case of switch statement?

784


What does string mean in java?

833


What are the 6 mandatory procedures for iso 9001?

742


Why are global variables used?

721