Hey guys. It's me again. So they told me today that I shouldn't have used XMLEncoder/XMLDecoder. It wasn't allowed. Dave Tolls was right. But they gave me some time to come up with another solution. Looks like I have to use reflection for this task. The problem is that I'm fairly new to Java and don't have experience with dealing with reflection whatsoever. So could you guys give me a piece of advice on this? How can this be done? Should I use the ClassLoader? I'd really be grateful for you help. guys.
Hey guys. How's everybody doing? Hope y'all doing fine. I'm fairly new to Java and I've got a bit of a problem here. Is it possible to serialize JavaBeans to byte array without implementing Serializable? I was given a task to write a class that serializes and deserializes JavaBeans without using JSON, Protobuf, Java serialization API, and other serializations. I'm obliged to implement this interface instead:
Could you guys give me a piece of advice on how this can be done?
Thanks for your time.