在Java中使用类似于< reinterpret_cast>的转换吗?在C ++中 [英] Is there cast in Java similar to <reinterpret_cast> in C++
本文介绍了在Java中使用类似于< reinterpret_cast>的转换吗?在C ++中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到了我的函数消息字节数组和对象类型,我需要从字节中恢复对象。在Java中是否存在类似于C ++的演员?
I get in my function message array of bytes and type of object, I need to restore object from bytes. Is there in Java any cast like in C++ ?
推荐答案
不,你可以使用序列化。
这篇关于在Java中使用类似于< reinterpret_cast>的转换吗?在C ++中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文