• Post Reply Bookmark Topic Watch Topic
  • New Topic

readObject() with primitive arrays

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!