+ 1
In java, in which class writeObject() method belongs.?? I am just unable to find it...
I have already searched in ObjectOutputStream.... but it's not there...
6 Answers
+ 1
java.io.ObjectOutputStream;
https://docs.oracle.com/javase/7/docs/api/java/io/ObjectOutputStream.html
+ 1
is it ObjectOutputStream??? but I didn't find the method in there!!!! plz answer
+ 1
yeah... find it... thanks.... but it's not showing when m checking the method inside the ObjectOutputStream??? by using the command as....
javap java.io.ObjectOutputStream.
+ 1
When I run the javap java.io.ObjectOutputStream command it shows it between these two methods:
public void useProtocolVersion(int) throws java.io.IOException;
public final void writeObject(java.lang.Object) throws java.io.IOException;
protected void writeObjectOverride(java.lang.Object) throws java.io.IOException;
+ 1
yeah ... my bad.... got it. thank you so much 4 helping me outđ
0
Go to the link provided and scroll down to the method summary. They are in order. writeObject() comes right after writeLong(). Click on the method name and it will take you to the full description of the method.