开发者

Serialize on a PC, deserialize on an android phone?

Is it possible to serialize an object on a pc, send it through a socketed connection to an android phone and then deserialize it and use it on the pho开发者_Python百科ne? I read somewhere that there might be an issue with the JVM version but didnt fully understand what the issue might be.


You can rely on a fact that JSON should handle this stuff at standard level, not in library implementation


Theoretically, it's no problem. Think about applet... Byte codes could be transported via net and then be executed by remote client jvm. However, JVM has different implementation following some specification (***JSR). As a result, it's possible that some codes run into problem in different jvm.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜