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 / puneet

outpurstreamobject.writeobject(object o);
flush//;
close//;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between protected and default access.

745


How many digits can a float hold?

754


What are the advantages of defining packages in java?

743


Which class cannot be a subclass in java?

731


Describe method overriding

814


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

771


What is integer parseint?

729


What happens if I remove static from main method?

766


What is difference between classpath and path variables in java?

882


What does ide stand for?

710


What is the need of transient variables in Java ?

809


Why arraylist is used in java?

771


How do you use find and replace?

710


What is the use of list in java?

743


Should a main method be compulsorily declared in all java classes?

797