Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

readObject() with primitive arrays  RSS feed

 
Lucky J Verma
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing/reading an simple int-array using writeObject()/readObject() onto ObjectInput/OutputStream.
It works & retrieved .If i change the the array meantime , then read it,it doesnt show changes but old array.
i know ,
state at the time of writing== is state at time of reading

but i saved reference to arr,in writeObject().so reading through it,should not reflect changes .

thnx
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!