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

Can two objects have same hashcode?

560


What is difference between iterator and enumeration in java?

520


What are new features introduced with java 8 ?

545


What is meant by data hiding in java?

632


Can java hashmap have duplicate keys?

505






Write java program to reverse string without using api?

543


What is function and method in java?

514


Which collections are thread safe in java?

471


What is a line separator in java?

533


What is integer size in java?

501


Difference between arraylist and vector.

580


What is static keyword?

584


What class of exceptions are generated by the java run-time system?

623


Difference between ‘>>’ and ‘>>>’ operators in java?

633


Can we override protected method in java?

574