I would like to check if the data read from a file is the same as what was written.
Does the following example which calculating, saves, reads, recalculates, and compares the hash code accomplish the goal of making sure the data read matches the data written?
Is there a simpler solution?
And what's up with your naming conventions? Does an "f" in front of a name mean something or not? If so, what on earth does it mean? What's the "a" prefix, in things like "aAValue"? What's with the comments of "Read data from a binary file" on a method named "readBinaryFile"? And naming an ObjectInputStream aIsObject? It's all quite distracting.
So, my two questions would be these: (a) does it do what you want, and (b) how could it be simpler than writing, reading, and comparing?