In java, in which class writeObject() method belongs.?? I am just unable to find it... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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...

25th Aug 2017, 6:16 AM
Saurav Kumar
Saurav Kumar - avatar
6 Answers
25th Aug 2017, 6:27 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
is it ObjectOutputStream??? but I didn't find the method in there!!!! plz answer
25th Aug 2017, 1:44 PM
Saurav Kumar
Saurav Kumar - avatar
+ 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.
25th Aug 2017, 6:11 PM
Saurav Kumar
Saurav Kumar - avatar
+ 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;
25th Aug 2017, 6:38 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
yeah ... my bad.... got it. thank you so much 4 helping me outšŸ‘
25th Aug 2017, 6:49 PM
Saurav Kumar
Saurav Kumar - avatar
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.
25th Aug 2017, 5:51 PM
ChaoticDawg
ChaoticDawg - avatar