size « serialize « Java I/O Q&A





1. Size of serialized classes    coderanch.com

I'm using serialized ValueObject classes as return values from some stateless session EJBs. In other words, I'm sending classes that are basically just data containers across the network, and to go from JVM to JVM, they have to be serialized. Obviously, I want to keep these classes as small as possible, so that not too much data is being transmitted, thus ...

2. Serialization size    forums.oracle.com

Hi, I would like to ask you about this one: Given that i need to send two float numbers and one integer from mobile device to a server, using data streams, they have like 3*4 bytes = 12 bytes together. If i wanted to use object streams for other convenience and make a class "Data" with these three primitive data types ...