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
what is anonymous class in java?
What is array size in java?
What is the default size of set in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is use of functional interface in java 8? Explain
What is the default value of byte datatype in java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Can an object be null?
What about features of local inner class?
Why main method is called first in java?
What is the output of the below java program?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
What are the differences between graph and tree?
What is variable and example?
Why is java so important?