Is there a way to get the bytes of an object that doesn't implement serializeble? In cpp i know you can just copy size of the object bytes from the address of the object in the memory, is there a way to do this in java?
edit: I don't really see how that is a duplication of Converting any object to a byte array in java by just to clarify i meant convert a specific non serilizable object