i'm learning Java language thanks "to Deitel & Deitel How To Program in Java 10ed".
But i have some problem about understanding the stream of object in file .
I understand that ObjectOutputStream enables you to write Object in file.
Using Book's words : ObjectOutputStream is initialized with a Stream Object , because it writes byte in the file.
Instead ObjectInputStream enable you to read Object in the file .
And ObjectInputStream is initialized with a a Stream Object for catch bytes from file.
But what is a Stream object ?
This is the code to Output:
output = new ObjectOutputStream(Files.newOutputStream( Paths.get("clients.ser")));
this is the code to input:
input = new ObjectInputStream(Files.newInputStream(Paths.get("clients.ser"));
What is Files.newOutputStream? What Does it return ?
Thanks for Attention (if you tell me books for learning java better than mine it's very good!)
(i'm italian, so maybe my english would be not so good )